So I’ve been working on this project through repl but cant get the correct solution. My code on my server.js file is exactly the same as this Advanced Node and Express - Set up Passport · GitHub, I’ve imported and required both passport and express-session, and Ive set the ‘SESSION_SECRET’ in my env file. From what I understand that should be enough to solve the challenge but for some reason I get the following error when I try and run the server. Would anyone have any guidance as to where to go from here?
There seems to be a misunderstanding about the .env file.
All I did to get past the error is create a .env file, and add SESSION_SECRET=someval to it. If you are unaware of how .env files work, I recommend these resources:
If you have any specific questions, feel free to ask them. (P.S. I have deleted the .env file in your project, so you can go through the steps to create)