diff --git a/examples/oauth2/app.js b/examples/oauth2/app.js index 5260589..5a9d29d 100644 --- a/examples/oauth2/app.js +++ b/examples/oauth2/app.js @@ -88,8 +88,7 @@ app.get('/login', function(req, res){ // redirecting the user to google.com. After authorization, Google // will redirect the user back to this application at /auth/google/callback app.get('/auth/google', - passport.authenticate('google', { scope: ['https://www.googleapis.com/auth/userinfo.profile', - 'https://www.googleapis.com/auth/userinfo.email'] }), + passport.authenticate('google', { scope: ['https://www.googleapis.com/auth/plus.login'] }), function(req, res){ // The request will be redirected to Google for authentication, so this // function will not be called.