Update to logout route for passport

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:

Welcome there,

This section of the curriculum is not undergoing major updates, because our main efforts are focused on the new version of the curriculum.

In previous lessons specific versions of the dependencies are installed specifically to avoid these problems.

Hope this clarifies