Custom Callback never called when Google Auth on passportjs
问题 I try to login with Google by using PassportJS. But when I use the custom callback, the Google Strategy never called the callback. What am I doing wrong? My codes are below. endpoints: var router = express.Router(); router.get('/', passport.authenticate('google', { scope: [ 'https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/plus.profiles.read', 'https://www.googleapis.com/auth/userinfo.email' ] } )); router.get('/callback', function (req, res) { console.log("GOOGLE