Browse Source

revert secure cookie

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

+ 2
- 2
src/index.js View File

@@ -36,9 +36,9 @@ const routesArray = ['/create', '/auth'];
app.use(routesArray, session({
secret: process.env.MONGO_PASSWORD, // dumb
store,
resave: true, // TODO: reverting to orig to see if this is the prob
resave: false, // TODO: testing
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?
cookie: { secure: false, maxAge: 1000 * 60 * 60 * 3, sameSite: false }, // TODO: reverting to false
}));

app.use((req, res, next) => {


Loading…
Cancel
Save