From 961c90854cb2951af1b94fb0d999159a62cef37a Mon Sep 17 00:00:00 2001 From: btouellette Date: Mon, 4 Mar 2019 23:57:33 +0000 Subject: [PATCH] add userProfileURL to handle Google+ API shutdown --- config/passport.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/passport.js b/config/passport.js index e34d639..3b7f2c5 100644 --- a/config/passport.js +++ b/config/passport.js @@ -318,10 +318,10 @@ module.exports = function(passport) { // GOOGLE ================================================================== // ========================================================================= passport.use(new GoogleStrategy({ - - clientID : configAuth.googleAuth.clientID, - clientSecret : configAuth.googleAuth.clientSecret, - callbackURL : configAuth.googleAuth.callbackURL, + clientID : configAuth.googleAuth.clientID, + clientSecret : configAuth.googleAuth.clientSecret, + callbackURL : configAuth.googleAuth.callbackURL, + userProfileURL : 'https://www.googleapis.com/oauth2/v3/userinfo', passReqToCallback : true // allows us to pass in the req from our route (lets us check if a user is logged in or not) }, @@ -329,7 +329,7 @@ module.exports = function(passport) { // asynchronous process.nextTick(function() { - + // check if the user is already logged in if (!req.user) {