What is your hint or solution suggestion?
Per an update to passport (posted from a Medium article on May 20, 2022) the function for logging out a user has changed. Before the boilerplate code was
app.post('/logout', function(req, res, next) {
req.logout();
res.redirect('/');
});
However, that has not been modified to:
app.post('/logout', function(req, res, next) {
req.logout(function(err) {
if (err) { return next(err); }
res.redirect('/');
});
});
Challenge: Logging a User Out
Is it possible to update the problem code to reflect this?
Link to the challenge: