Merge pull request #1163 from SISheogorath/fix/googleAuth

Add required change for Google+ API deprecation
This commit is contained in:
Christoph (Sheogorath) Kern
2019-03-09 14:50:20 +01:00
committed by GitHub

View File

@@ -11,7 +11,8 @@ let googleAuth = module.exports = Router()
passport.use(new GoogleStrategy({
clientID: config.google.clientID,
clientSecret: config.google.clientSecret,
callbackURL: config.serverURL + '/auth/google/callback'
callbackURL: config.serverURL + '/auth/google/callback',
userProfileURL: "https://www.googleapis.com/oauth2/v3/userinfo"
}, passportGeneralCallback))
googleAuth.get('/auth/google', function (req, res, next) {