Tell us what’s happening:
I’m having issues passing the tests for redirects back to the home page and I feel that perhaps it is an issue with test? I tested the routes and they do redirect back to the home page. I’m having the same test fail for the “Create a middleware” challenge as well.
Your code so far
app.route("/logout").get((req, res) => {
req.logout();
res.redirect("/");
});
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0.
Challenge: Advanced Node and Express - Logging a User Out
Link to the challenge:
https://www.freecodecamp.org/learn/information-security-and-quality-assurance/advanced-node-and-express/logging-a-user-out