Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not save token Id, if value is null #149

Merged
merged 3 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
8 changes: 5 additions & 3 deletions src/Tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ function _debugFunc() {
// on some browser we come across, like it was on IE 7).
//
// Lazy evaluation because `Meteor` does not exist right away.(??)
return typeof Meteor !== 'undefined'
? Meteor._debug
: typeof console !== 'undefined' && console.error
if (typeof Meteor !== 'undefined') {
return Meteor._debug;
}

return typeof console !== 'undefined' && console.error
? function () {
console.error.apply(console, arguments);
}
Expand Down
10 changes: 9 additions & 1 deletion src/user/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,15 @@ const User = {
_isTokenLogin: false,
_isCallingLogin: false,
_loginWithToken(value) {
Data._tokenIdSaved = value;
if (!value) {
Meteor.isVerbose &&
console.info(
'User._loginWithToken::: parameter value is null, will not save as token.'
);
} else {
Data._tokenIdSaved = value;
}

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