Thursday 4 May 2017

Issue with Sign in Twitter + node passport-twitter

I am having some problems to connect to twitter API. I have researched for tips but could not find anything. I am using passport-twitter module to authentication with Twitter, however since I upgraded my node (version 6.10.3), I am having this problem.

**Failed to load resource: the server responded with a status of 400 () api.twitter.com/oauth/authenticate?oauth_token=**

I set 127.0.0.1:8080/auth/twitter/callback in Twitter webpage and in:

passport.use(new TwitterStrategy({
        consumerKey: configAuth.twitterAuth.consumerKey,
        consumerSecret: configAuth.twitterAuth.consumerSecret,
        callbackURL: configAuth.twitterAuth.callbackURL
}

I deployed in Heroku but the same problem happens. Can someone help me? Thanks.



via user3078356

No comments:

Post a Comment