freeCodeCamp Logging a User Out - req.logout() problem

What is your hint or solution suggestion?

Recently i was doing this challenge and had problem with req.logout() even in solution was same code as my.

After that that i found out req.logout() became asynchronous function, whereas previously it was synchronous.

So its needs to be changed from :

app.route('/logout')
  .get((req, res) => {
    req.logout();
    res.redirect('/');
});

To something like this:

app.route('/logout').get((req,res)=>{
    req.logout((err)=>{
      if (err) { return next(err);}
    });
    res.redirect('/');
  });

To be able pass tests.

Challenge: Logging a User Out

Link to the challenge: