Skip to content

Conversation

sergioing1000
Copy link

Solving these two errors when running server:

  1. express-session deprecated undefined resave option; provide resave option index.js:38:9

  2. express-session deprecated undefined saveUninitialized option; provide saveUninitialized option index.js:38:9

the correct code, with the correct brackets sintax, has to be as follows:

app.use(session({ secret: "fingerpint", resave: true, saveUninitialized: true }));

Solving these two errors when running server:

1. express-session deprecated undefined resave option; provide resave option index.js:38:9

2. express-session deprecated undefined saveUninitialized option; provide saveUninitialized option index.js:38:9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant