@cocreate/users 1.22.5 → 1.22.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,17 @@
1
+ ## [1.22.7](https://github.com/CoCreate-app/CoCreate-users/compare/v1.22.6...v1.22.7) (2023-05-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update dependencies versions ([8ea7c78](https://github.com/CoCreate-app/CoCreate-users/commit/8ea7c782737e2c0c62bce71bc320a7738521f0ad))
7
+
8
+ ## [1.22.6](https://github.com/CoCreate-app/CoCreate-users/compare/v1.22.5...v1.22.6) (2023-05-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * renamed authInstance to authenticate ([64554c1](https://github.com/CoCreate-app/CoCreate-users/commit/64554c164582d7950319aca24f3802d7be31325f))
14
+
1
15
  ## [1.22.5](https://github.com/CoCreate-app/CoCreate-users/compare/v1.22.4...v1.22.5) (2023-05-23)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.22.5",
3
+ "version": "1.22.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/server.js CHANGED
@@ -57,9 +57,9 @@ class CoCreateUser {
57
57
  uid: data.uid
58
58
  }
59
59
 
60
- if (data.document[0] && data.document[0]._id && self.wsManager.authInstance) {
60
+ if (data.document[0] && data.document[0]._id && self.wsManager.authenticate) {
61
61
  const user_id = data.document[0].key
62
- const token = await self.wsManager.authInstance.generateToken({ user_id });
62
+ const token = await self.wsManager.authenticate.generateToken({ user_id });
63
63
 
64
64
  if (token && token != 'null') {
65
65
  response = {