使用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);
});