@cocreate/users 1.21.0 → 1.21.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,11 @@
1
+ ## [1.21.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.21.0...v1.21.1) (2023-05-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * apikey renamed to key ([392ec35](https://github.com/CoCreate-app/CoCreate-users/commit/392ec35a1d5b0234a30cd5342ea6b6dfd0d59b05))
7
+ * apikey renamed to key ([f195cc7](https://github.com/CoCreate-app/CoCreate-users/commit/f195cc726e448b45e3e94ec8ee15af105840c9ba))
8
+
1
9
  # [1.21.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.20.0...v1.21.0) (2023-05-10)
2
10
 
3
11
 
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "config": {
3
3
  "organization_id": "5ff747727005da1c272740ab",
4
- "apiKey": "2061acef-0451-4545-f754-60cf8160",
4
+ "key": "2061acef-0451-4545-f754-60cf8160",
5
5
  "host": "general.cocreate.app"
6
6
  },
7
7
  "sources": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.21.0",
3
+ "version": "1.21.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/client.js CHANGED
@@ -70,7 +70,7 @@ const CoCreateUser = {
70
70
 
71
71
  if (success) {
72
72
  localStorage.setItem('organization_id', crud.socket.config.organization_id);
73
- localStorage.setItem("apiKey", crud.socket.config.apiKey);
73
+ localStorage.setItem("key", crud.socket.config.key);
74
74
  localStorage.setItem("host", crud.socket.config.host);
75
75
  localStorage.setItem('user_id', data.document[0]['_id']);
76
76
  localStorage.setItem("token", token);
@@ -230,7 +230,7 @@ const CoCreateUser = {
230
230
  _id: user_id
231
231
  },
232
232
  }).then((data) => {
233
- localStorage.setItem('apiKey', data['apiKey']);
233
+ localStorage.setItem('key', data['key']);
234
234
  localStorage.setItem('organization_id', data.document[0]['current_org']);
235
235
  localStorage.setItem('host', crud.socket.config.host);
236
236
 
package/src/server.js CHANGED
@@ -54,7 +54,7 @@ class CoCreateUser {
54
54
  collection: string,
55
55
  data: object,
56
56
  eId: string,
57
- apiKey: string,
57
+ key: string,
58
58
  organization_id: string
59
59
  }
60
60
  **/