My app doesn’t get Twitter’s form with email and password fields

apps.twitter.com
oauth
auth
api

#1

Suddenly, I stopped receiving the form by entering an email and password for authorization in the application via Twitter. I get error message: Timed out. Please help me what happened with Twitter’s passport?


#2

WCan you explain what you mean by “Twitter’s passport”, pleasse?


#3

Now I can not enter the site through the authorisation of Twitter. 1 month ago it worked.


#4

aWould you please explain precisely how you integrate with Twitter, what used to work, and what is no longer operating in the same way? Thank you


#5

Yes, sure.
I use simple integration with Twitter with this API https://github.com/jaredhanson/passport-twitter.
Below you can see code in my app:
passport.use(new TwitterStrategy({
consumerKey: TWITTER_CONSUMER_KEY,
consumerSecret: TWITTER_CONSUMER_SECRET,
callbackURL: “http://127.0.0.1:3000/auth/twitter/callback
},
function(token, tokenSecret, profile, cb) {
User.findOrCreate({ twitterId: profile.id }, function (err, user) {
return cb(err, user);
});
}
));

Currently login with Twitter no longer works. I click on twitter button and get just message: 504 Gateway Time-out.


#6

We made some changes to callback URLs back in June. Have you whitelisted your callback URL from the Twitter apps dashboard or apps.twitter.com?

Here are our docs on callback URLs.