Fix code styles and user refreshToken might need update when accessToken not match

This commit is contained in:
Cheng-Han, Wu 2016-05-16 12:46:48 +08:00
parent 6e9cb49c27
commit 6b521b99d4
1 changed files with 5 additions and 4 deletions

View File

@ -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);