【发布时间】:2015-12-17 23:46:58
【问题描述】:
在来自 Facebook 的用于 nodejs 护照身份验证的回调中,如何在回调中获取 req 对象?
passport.use(new FacebookStrategy({
clientID: 123456789,
clientSecret: 'SECRET',
callbackURL: "http://example.com/login/facebook/callback"
},
function(accessToken, refreshToken, profile, done){
// Is there any way to get the req object in here?
}
));
【问题讨论】:
标签: node.js facebook authentication facebook-authentication passport.js