I will copy the application passport to the local application,
Interestingly, I can register users, but I canβt get them to log out,
app.get('/logout', function(req, res){ req.logout(); res.redirect('/'); });
it does nothing, nothing happens on the log files, and I have a link to / logout
These are the main examples of routes.
app.get('/page1', function(req, res){ res.render('page1', {user: req.user}); }); app.get('*', function(req,res){ res.render('root', {user: req.user}); });
Why does logout not work?
source share