Skip to content

Commit

Permalink
do not save token Id, if value is null
Browse files Browse the repository at this point in the history
  • Loading branch information
bratelefant committed Feb 13, 2024
1 parent d1ab2ec commit 88413b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion companion-packages/meteorrn-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"author": "",
"license": "ISC",
"peerDependencies": {
"@meteorrn/core":">=2.0.7 || ^2.8.0-rc.1"
"@meteorrn/core":">=2.0.7 || ^2.8.1-rc.0"
}
}
9 changes: 7 additions & 2 deletions src/user/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,13 @@ const User = {
_isTokenLogin: false,
_isCallingLogin: false,
_loginWithToken(value) {
Data._tokenIdSaved = value;
if (value !== null) {
if (!value){
Meteor.isVerbose && console.info('User._loginWithToken::: parameter value is null, do not save token.');
} else {
Data._tokenIdSaved = value;
}

if (value !== null) {
this._isTokenLogin = true;
Meteor.isVerbose && console.info('User._loginWithToken::: token:', value);
if (this._isCallingLogin) {
Expand Down

0 comments on commit 88413b1

Please sign in to comment.