From 55284c823d10e7abe9b6e078b1196262555fb29e Mon Sep 17 00:00:00 2001 From: Sergio <114320133+sergioing1000@users.noreply.github.com> Date: Thu, 11 Jul 2024 07:02:45 -0500 Subject: [PATCH] Update index.js - Solving two running server errors 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 --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b1615344..95c6b9e6 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,11 @@ const authenticatedUser = (username, password) => { const app = express(); -app.use(session({secret:"fingerpint"},resave=true,saveUninitialized=true)); +app.use(session({ + secret: "fingerpint", + resave: true, + saveUninitialized: true +})); app.use(express.json());