错误:无法在会话中为护照发送者找到请求令牌

编程入门 行业动态 更新时间:2024-10-17 09:38:46

错误:无法在会话中为护照发送者找到请求<a href=https://www.elefans.com/category/jswz/34/1771317.html style=令牌"/>

错误:无法在会话中为护照发送者找到请求令牌

以下是使用passport-twitter-时出现的错误>

Error: Failed to find request token in session
    at Strategy.OAuthStrategy.authenticate (/MYPROJECT/node_modules/passport-twitter/node_modules/passport-oauth1/lib/strategy.js:142:54)
    at Strategy.authenticate (/MYPROJECT/node_modules/passport-twitter/lib/strategy.js:85:40)
    at attempt (/MYPROJECT/node_modules/passport/lib/middleware/authenticate.js:337:16)
    at Object.authenticate [as handle] (/MYPROJECT/node_modules/passport/lib/middleware/authenticate.js:338:7)
    at next_layer (/MYPROJECT/node_modules/express/lib/router/route.js:103:13)
    at Route.dispatch (/MYPROJECT/node_modules/express/lib/router/route.js:107:5)
    at /MYPROJECT/node_modules/express/lib/router/index.js:205:24
    at Function.proto.process_params (/MYPROJECT/node_modules/express/lib/router/index.js:269:12)
    at next (/MYPROJECT/node_modules/express/lib/router/index.js:199:19)
    at next (/MYPROJECT/node_modules/express/lib/router/index.js:176:38)

下面是我实现的Scotch Twitter Signup教程,FB signup运行正常。

FYI

-

我在Twitter上多次检查了配置,对我来说似乎一切正常(callbackURL,密钥,机密等)

我检查了以下URL,但没有运气。

我的开发URL类似于-http://192.XXX.XXX.XX:PORT_NUMBER

以下是我的app.js app.js

以下是我的passport.js passport.js

以下是我的model.js buyer.js

让我知道我在做什么错了,因为现在我完全被错误弄丢了:(

以下是我使用通行证推特时遇到的错误-错误:无法在Strategy.OAuthStrategy.authenticate(/ MYPROJECT / node_modules / passport-twitter / ... [

我也明白了。这对我有帮助: 回答如下:

更多推荐

错误:无法在会话中为护照发送者找到请求令牌

本文发布于:2024-05-07 10:17:18,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:令牌   护照   中为   错误

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!