node.js - Error: Failed to find request token in session for passport-twitter -


following error getting when using passport-twitter -

error: failed find request token in session     @ strategy.oauthstrategy.authenticate (/myproject/node_modules/passport-twitter/node_modules/passport-oauth1/lib/strategy.js:142:54)     @ strategy.authenticate (/myproject/node_modules/passport-twitter/lib/strategy.js:85:40)     @ attempt (/myproject/node_modules/passport/lib/middleware/authenticate.js:337:16)     @ object.authenticate [as handle] (/myproject/node_modules/passport/lib/middleware/authenticate.js:338:7)     @ next_layer (/myproject/node_modules/express/lib/router/route.js:103:13)     @ route.dispatch (/myproject/node_modules/express/lib/router/route.js:107:5)     @ /myproject/node_modules/express/lib/router/index.js:205:24     @ function.proto.process_params (/myproject/node_modules/express/lib/router/index.js:269:12)     @ next (/myproject/node_modules/express/lib/router/index.js:199:19)     @ next (/myproject/node_modules/express/lib/router/index.js:176:38) 

following scotch twitter signup tutorial implemented, fb signup working fine.

fyi-

i checked configuration multiple times @ twitter , seems ok me(callbackurl, key, secret etc.)

i checked following url no luck.

my development url - http://192.xxx.xxx.xx:port_number

following app.js app.js

following passport.js passport.js

following model.js buyer.js

let me know doing wrong if lost error :(

i getting that. helped me:

https://github.com/jaredhanson/passport-twitter/issues/45#issuecomment-66934259

it calling localhost:300 had callback url set 127.0.0.1:3000. changed callback url localhost:3000 , problem solved.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -