Open saschb2b opened 7 years ago
Seems to be answered in #100
router.get('/login/facebook/return',
(req, res, next) => {
return passport.authenticate('facebook', {
failureRedirect: '/login',
session: false
},
(err, user, info) => {
if(err) {
logger.error(err);
res.redirect('/login');
}
else
{
next();
}
})(req, res, next);
})
Same here with heroku
Got a not really helpful 500 error message
Occured due to an undefined clientSecret value. Found it after spending way too much time debugging.
Error
as a message was not very helpful in this case. You could say that the configuration is wrong and print out the given object. Maybe pointing out which parameter is wrong.