Tell us what’s happening:
Unable to create .env file in repl.it. Hence, unable to get the defined variables. And even unable to access variables in the already existing “sample.env” file and the main issue is that unable to get the value for “SESSION_SECRET” variable stored in the “sample.env” file. I had to give the session’s secret key a value directly in my main “server.js” file.
Please suggest me if there are any possible solutions.
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/86.0.4240.111 Safari/537.36 Edg/86.0.622.51.
Challenge: Set up Passport
Link to the challenge: