jaredhanson/passport-twitter — Issue #1: sample failing with message 'oauth_token_secret' of undefined
Author: hlobil
Created: 2012-01-16 18:34:10+00:00
State: open

I added Consumer key and Consumer Secret to the sample.

Then I logged in.

http://127.0.0.1:3000/auth/twitter/callback?oauth_token=ckjojfuTz2ZQBqRJNpiDniHP2VdpH0m2pXwGmgl85M&oauth_verifier=UpLb0TwmuRJwURuGwbuKoFjgKUh0oUoG3zkdgvKtU

TypeError: Cannot read property 'oauth_token_secret' of undefined
at Strategy. (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/passport-twitter/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth.js:119:71)
at Strategy.authenticate (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/passport-twitter/lib/passport-twitter/strategy.js:79:40)
at Passport.authenticate (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/passport/lib/passport/middleware/authenticate.js:120:14)
at callbacks (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/express/lib/router/index.js:272:11)
at param (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/express/lib/router/index.js:246:11)
at pass (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/express/lib/router/index.js:253:5)
at Router._dispatch (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/express/lib/router/index.js:280:4)
at Object.handle (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/express/lib/router/index.js:45:10)
at Context.next (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/express/node_modules/connect/lib/http.js:203:15)
at Context. (/Users/pavelsmacbookpro/Projects/test.com/node_modules/passport-twitter/examples/signin/node_modules/passport/lib/passport/context/http/actions.js:64:8)