|
|
@@ -49,9 +49,7 @@ module.exports = function(config) {
|
|
|
return callback(new Error('[googleAuth.handleCallback] Error to get token.'), null);
|
|
|
}
|
|
|
|
|
|
- oauth2Client.setCredentials({
|
|
|
- access_token: tokens.access_token,
|
|
|
- });
|
|
|
+ oauth2Client.credentials = tokens;
|
|
|
|
|
|
var oauth2 = google.oauth2('v2');
|
|
|
oauth2.userinfo.get({}, function(err, response) {
|