passport-twitter-token
passport-twitter-token copied to clipboard
Screen name not passed in the params during authenticate()
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 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?