【发布时间】:2013-11-01 11:38:09
【问题描述】:
我需要在 Twitter Passport 的成功回调中访问 req 对象:
passport.use(new TwitterStrategy({
consumerKey: TWITTER_CONSUMER_KEY,
consumerSecret: TWITTER_CONSUMER_SECRET,
callbackURL: "http://127.0.0.1:3000/auth/twitter/callback"
},
function(token, tokenSecret, profile, done) {
//here I need `req` object
}
));
如何在成功回调范围内访问它?
【问题讨论】:
-
什么
req对象?它的范围是什么? (因为您提供的代码中没有它)
标签: node.js express passport.js passport-twitter