I am having trouble getting my system to log out with PassportJS. It seems the logout route is being called, but its not removing the session. I want it to return 401, if th
I was having the same issues, capital O fixed it;
app.get('/logout', function (req, res){ req.logOut() // <-- not req.logout(); res.redirect('/') });
Edit: this is no longer an issue.