Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用护照 twitter 进行身份验证,虽然它确实有效并将我重定向到主页,但我想保存 url 中的 oauth 令牌,然后再将我重定向到我的主页,因为我想用它来更新用户的个人资料图片
事实证明这很简单
我只需要req.url在passport.authenticate()回调函数中使用
req.url
passport.authenticate()