Skip to content

Commit cda878d

Browse files
committed
Add required change for Google+ API deprecation
Since Google+ is shutting down soon, we need to get the profile data from another URL. Since the library already supports it, all we need to do is adding a single line of code. Details: #1160 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
1 parent de0acbb commit cda878d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/web/auth/google/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ let googleAuth = module.exports = Router()
1111
passport.use(new GoogleStrategy({
1212
clientID: config.google.clientID,
1313
clientSecret: config.google.clientSecret,
14-
callbackURL: config.serverURL + '/auth/google/callback'
14+
callbackURL: config.serverURL + '/auth/google/callback',
15+
userProfileURL: "https://www.googleapis.com/oauth2/v3/userinfo"
1516
}, passportGeneralCallback))
1617

1718
googleAuth.get('/auth/google', function (req, res, next) {

0 commit comments

Comments
 (0)