@cocreate/users 1.17.6 → 1.17.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.17.7](https://github.com/CoCreate-app/CoCreate-users/compare/v1.17.6...v1.17.7) (2023-04-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed adding token as cookie ([44077f7](https://github.com/CoCreate-app/CoCreate-users/commit/44077f7064c6b489d29b278353044b1fe7d6c420))
7
+
1
8
  ## [1.17.6](https://github.com/CoCreate-app/CoCreate-users/compare/v1.17.5...v1.17.6) (2023-04-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.17.6",
3
+ "version": "1.17.7",
4
4
  "description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "users",
package/src/client.js CHANGED
@@ -94,7 +94,7 @@ const CoCreateUser = {
94
94
  localStorage.setItem("host", crud.socket.config.host);
95
95
  localStorage.setItem('user_id', data.document[0]['_id']);
96
96
  localStorage.setItem("token", token);
97
- document.cookie = `token=${token};path=/`;
97
+ // document.cookie = `token=${token};path=/`;
98
98
  message = "Succesful signIn";
99
99
  document.dispatchEvent(new CustomEvent('signIn', {
100
100
  detail: {}
@@ -119,11 +119,11 @@ const CoCreateUser = {
119
119
  localStorage.removeItem("user_id");
120
120
  localStorage.removeItem("token");
121
121
 
122
- let allCookies = document.cookie.split(';');
122
+ // let allCookies = document.cookie.split(';');
123
123
 
124
- for (var i = 0; i < allCookies.length; i++)
125
- document.cookie = allCookies[i] + "=;expires=" +
126
- new Date(0).toUTCString();
124
+ // for (var i = 0; i < allCookies.length; i++)
125
+ // document.cookie = allCookies[i] + "=;expires=" +
126
+ // new Date(0).toUTCString();
127
127
 
128
128
  render.data({
129
129
  selector: "[template='signOut']",