this authenticate works fine and I get a redirect:
server.post(authPostRoute, passport.authenticate(
\'local\'
, { successRedirect: \'/\', failureRed
Enable passReqToCallback to get the request in callback. Like this:
passport.use(new FacebookStrategy({
clientID: '555555555555555',
clientSecret: '555555555555555555555',
callbackURL: "http://localhost:3000/auth/facebook/callback",
enableProof: false,
passReqToCallback: true
},
// The request will be provided as 1st param
function(req, accessToken, refreshToken, profile, done) {
});...