Skip to content
Permalink
Browse files
fix: session not persisting
  • Loading branch information
MantasMikal committed Feb 17, 2021
1 parent 39af6cf commit 3f11beb68ae4fed466a90cb7c410c52187a62cae
Showing 1 changed file with 1 addition and 1 deletion.
@@ -56,7 +56,7 @@ app.use(
secret: process.env.SESSION_SECRET,
resave: false,
store: new MongoStore({ mongooseConnection: dbConnection.connection }),
saveUninitialized: false,
saveUninitialized: true,
cookie: { secure: config.mode === 'production' },
})
);

0 comments on commit 3f11beb

Please sign in to comment.