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.