You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm running twitter-passport w/ Express 4.0, but the route middleware functionality advertised isn't working for me. The reason is that I'm using this module in conjunction with an iOS app and I want to send a JSON object to the server instead of a simple redirect. Is there are anything wrong with my syntax?
Here's sample code:
app.get('/auth/twitterX/callback', passport.authenticate('twitter'),function(req,res){
console.log("Made it past passport authen");
res.json({"status":"success"});
});
Basically I never get the console.log message displayed.
The text was updated successfully, but these errors were encountered:
So I'm running twitter-passport w/ Express 4.0, but the route middleware functionality advertised isn't working for me. The reason is that I'm using this module in conjunction with an iOS app and I want to send a JSON object to the server instead of a simple redirect. Is there are anything wrong with my syntax?
Here's sample code:
Basically I never get the console.log message displayed.
The text was updated successfully, but these errors were encountered: