使用Passport.js,我是否可以为同一路由指定多个认证提供程序?
例如(来自passport的指南),我可以在下面的示例路由上同时使用本地、Facebook和Twitter策略吗?
app.post('/login',
passport.authenticate('local'), /* how can I add other strategies here? */
function(req, res) {
// If this function gets called, authentication was successful.
// `req.user` contains the authenticated user.
res.redirect('/users/' + req.user.username);
});