Advanced Node and Express - Create New Middleware

Hello
I can’t redirect the user to/ if is not authenticated.

Do you think is because I did not put the good password in the sample.env file to connect on mongoose ? ( i’m not sure about the password than i put … )

Or do you think it’s for another reason ?

You can check my code here
https://replit.com/@frogfox/boilerplate-advancednode#server.js
Thanks !!!

Your browser information:

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

Challenge: Advanced Node and Express - Create New Middleware

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.