@cocreate/users 1.31.0 → 1.31.1

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.31.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.31.0...v1.31.1) (2023-12-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed await as endcodeToken does not require ([78e0ef0](https://github.com/CoCreate-app/CoCreate-users/commit/78e0ef0768444e71ab1ab1bc38ac8ce7693d5a16))
7
+
1
8
  # [1.31.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.30.0...v1.31.0) (2023-11-25)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
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
@@ -65,7 +65,7 @@ class CoCreateUser {
65
65
 
66
66
  if (data.object[0] && data.object[0]._id && self.wsManager.authenticate) {
67
67
  const user_id = data.object[0].key
68
- const token = await self.wsManager.authenticate.encodeToken({ user_id });
68
+ const token = self.wsManager.authenticate.encodeToken(data.organization_id, user_id, data.clientId);
69
69
 
70
70
  if (token && token != 'null') {
71
71
  socket.user_id = user_id