I typed npm start to run my program but this is the comment that U received in the terminal: express-session deprecated req.secret; provide secret option app.js:27:9. I don't understand how this issue needs to be fixed. This is the code from app.js:27:9
app.use(session({
store: new FileStore(),
secret: process.env.SESSION_SECRET,
resave: false,
saveUninitialized: true,
is_logged_in: false,
}))
SESSION_SECRET
– Elliottexpress-session
was not given your secret. the value inprocess.env.SESSION_SECRET
(or whatever you passed to thesecret
option) is empty. – Abysmal