I have the following Node code using passport-google-oauth...
app.get(\'/auth/google\', passport.authenticate(\'google\', { scope : [\'profile\', \'email\'] }));
You didn't use "passport.authenticate('google')" middleware inside the second route '/auth/google/callback'.
your second route should be like :
app.get( '/auth/google/callback', passport.authenticate( 'google', { successRedirect: '/', failureRedirect: '/login' }));