Skip to content

Commit

Permalink
fix: apikey renamed to key
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed May 10, 2023
1 parent 56bf0a3 commit f195cc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const CoCreateUser = {

if (success) {
localStorage.setItem('organization_id', crud.socket.config.organization_id);
localStorage.setItem("apiKey", crud.socket.config.apiKey);
localStorage.setItem("key", crud.socket.config.key);
localStorage.setItem("host", crud.socket.config.host);
localStorage.setItem('user_id', data.document[0]['_id']);
localStorage.setItem("token", token);
Expand Down Expand Up @@ -230,7 +230,7 @@ const CoCreateUser = {
_id: user_id
},
}).then((data) => {
localStorage.setItem('apiKey', data['apiKey']);
localStorage.setItem('key', data['key']);
localStorage.setItem('organization_id', data.document[0]['current_org']);
localStorage.setItem('host', crud.socket.config.host);

Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CoCreateUser {
collection: string,
data: object,
eId: string,
apiKey: string,
key: string,
organization_id: string
}
**/
Expand Down

0 comments on commit f195cc7

Please sign in to comment.