使用 Passport.js 是否可以为同一路由指定多个身份验证提供程序?
例如(来自护照指南)我可以在下面的示例路线上使用本地和 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);
});