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
I'm using passport.js authentication for different API's and works fine, but I want to separate the code for each one and I'm stuck calling passport.authenticate('facebook'). I'll put Facebook code for example.
I'm using
passport.js
authentication for different API's and works fine, but I want to separate the code for each one and I'm stuck callingpassport.authenticate('facebook')
. I'll put Facebook code for example.This works:
But when I try to split it in a different file, it never callback from
passport.authenticate('facebook')
:sserve.js:
authUtils.js:
After some debug test, the problem seems to be that
passport.authenticate(network)
doesn't make redirection to callback URL.If I add:
Console shows "1" and browser return
404 Not Found
. Passport doesn't continue with the redirection process.The text was updated successfully, but these errors were encountered: