Create New Middleware

Tell us what’s happening:
A Get request to /profile should correctly redirect to / since we are not authenticated.=>not accepted

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Create New Middleware

Link to the challenge:
https://www.freecodecamp.org/learn/information-security-and-quality-assurance/advanced-node-and-express/create-new-middleware

Hello! In order to help you debug this, we would need to see your code.