diff --git a/lib/strategy.js b/lib/strategy.js index cae0a37..80951cf 100644 --- a/lib/strategy.js +++ b/lib/strategy.js @@ -106,7 +106,7 @@ GoogleTokenStrategy.prototype.authenticate = function(req, options) { * @api protected */ GoogleTokenStrategy.prototype.userProfile = function(accessToken, done) { - var profileUrl = 'https://www.googleapis.com/oauth2/v3/tokeninfo?access_token='+accessToken; + var profileUrl = 'https://www.googleapis.com/oauth2/v3/userinfo?access_token='+accessToken; this._oauth2.get(profileUrl, null, function (err, body, res) { if (err) { return done(new InternalOAuthError('failed to fetch user profile', err)); }