0
我创建基于Node.js和受快递4.我也使用Passportjs和谷歌的OAuth 2 Startegy用于验证的Web应用程序的护照身份验证功能。如何为请求处理功能
我想配置,以处理请求我的路线。 我已经了解到,该行正常工作:
router.get('/signin/google/callback', passport.authenticate('google', {failureRedirect: '/signin'}));
但是当我决定来处理功能的路由,应用程序停止响应:
router.get('/signin/google/callback', function (req, res) {
passport.authenticate('google', {failureRedirect: '/signin'});
});
难道我错过了什么?在此先感谢