passport-twitter-token icon indicating copy to clipboard operation
passport-twitter-token copied to clipboard

Screen name not passed in the params during authenticate()

Open saravr opened this issue 10 years ago • 1 comments

Hi,

I am using "passport-twitter-token": "~0.1.5".. I am also setting "skipExtendedUserProfile: true" in the options but profile.username is undefined.

Adding following lines in TwitterTokenStrategy.prototype.authenticate() seems to help: ... var screenName = lookup(req.body, 'screen_name') || lookup(req.query, 'screen_name'); var params = { user_id: userId, screen_name: screenName }; <<--- Added screenName..

Is there anyother way to obtain profile.username ?

Thanks, Sarav

saravr avatar Feb 23 '15 01:02 saravr

@saravr profile.username is a screen_name from the Twitter response (if it exists). I'm trying to reproduce this but still unsuccessful. Can you clarify the problem?

ghaiklor avatar Sep 30 '15 13:09 ghaiklor