Skip to content

Commit d1b2fb2

Browse files
authored
Merge pull request #1163 from SISheogorath/fix/googleAuth
Add required change for Google+ API deprecation
2 parents de0acbb + cda878d commit d1b2fb2

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)