mirror of https://github.com/status-im/codimd.git
Fix code styles and user refreshToken might need update when accessToken not match
This commit is contained in:
parent
6e9cb49c27
commit
6b521b99d4
|
@ -31,6 +31,7 @@ function callback(accessToken, refreshToken, profile, done) {
|
||||||
return done(null, user);
|
return done(null, user);
|
||||||
}
|
}
|
||||||
user.accessToken = accessToken;
|
user.accessToken = accessToken;
|
||||||
|
user.refreshToken = refreshToken;
|
||||||
user.save().then(function () {
|
user.save().then(function () {
|
||||||
if (config.debug)
|
if (config.debug)
|
||||||
logger.info('user login: ' + user.id);
|
logger.info('user login: ' + user.id);
|
||||||
|
|
Loading…
Reference in New Issue