From 057affe860b8120966cec8f824b8b18fb28a496e Mon Sep 17 00:00:00 2001 From: Avris Date: Sun, 15 Nov 2020 07:15:37 +0100 Subject: [PATCH] [backend] specify undefined session params --- server/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/index.js b/server/index.js index 5450cc69..f67126e0 100644 --- a/server/index.js +++ b/server/index.js @@ -15,6 +15,8 @@ app.use(cookieParser()); app.use(session({ secret: process.env.SECRET, cookie: {}, + resave: false, + saveUninitialized: false, })); app.use(async function (req, res, next) {