Browse Source

revert test to resave property

master
Rich Brown 11 months ago
parent
commit
b3156c910c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/index.js

+ 1
- 1
src/index.js View File

@@ -36,7 +36,7 @@ const routesArray = ['/create', '/auth'];
app.use(routesArray, session({
secret: process.env.MONGO_PASSWORD, // dumb
store,
resave: false, // TODO: my store seems to destroy old, so this seems ok?
resave: true, // TODO: reverting to orig to see if this is the prob
saveUninitialized: false, // TODO: testing - will this keep my db cleaner?
cookie: { secure: true, maxAge: 1000 * 60 * 60 * 3, sameSite: false }, // TODO: testing - i use https so this is ok?
}));


Loading…
Cancel
Save