Skip to content
Permalink
Browse files
fix: attempt to fix session persistence
  • Loading branch information
MantasMikal committed Feb 17, 2021
1 parent 3f11beb commit f8a99b718f2d7d0a32cee53cf21bb1210c715f39
Showing 1 changed file with 2 additions and 2 deletions.
@@ -53,11 +53,11 @@ const MongoStore = connectMongo(session);
app.use(
session({
name: "FIDO2 APP",
secret: process.env.SESSION_SECRET,
secret: "supersecret",
resave: false,
store: new MongoStore({ mongooseConnection: dbConnection.connection }),
saveUninitialized: true,
cookie: { secure: config.mode === 'production' },
cookie: { secure: true },
})
);

0 comments on commit f8a99b7

Please sign in to comment.