Advanced node and express help

Tell us what’s happening:
i’m having the same issue a lot of people have reported, the tests pass but the app doesn’t work as it is supposed to. at this point i think my code is a carbon copy of the FCC proposed solution and i still can’t get it to either properly authenticate or properly redirect (i don’t know which one is the issue or maybe both). i didn’t see any solution to this in the posts i read, if there is one please point me there.

Your project link(s)

solution: https://replit.com/@federicopieruzz/boilerplate-advancednode

Your browser information:

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

Challenge: Set up the Environment

Link to the challenge: