Skip to content

Commit

Permalink
add userProfileURL to handle Google+ API shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
btouellette committed Mar 5, 2019
1 parent 009e49d commit 961c908
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,18 +318,18 @@ 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)

},
function(req, token, refreshToken, profile, done) {

// asynchronous
process.nextTick(function() {

// check if the user is already logged in
if (!req.user) {

Expand Down

0 comments on commit 961c908

Please sign in to comment.