最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

网站源码admin21浏览0评论

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

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

以下是使用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 / ... [

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

评论列表(0)

  1. 暂无评论