fix: enable saveUninitialized in session configuration
This commit is contained in:
parent
dfd0655042
commit
27565f513c
@ -57,7 +57,7 @@ app.use(express.json());
|
|||||||
app.use(session({
|
app.use(session({
|
||||||
secret: process.env.SESSION_SECRET || 'your-secret-key-change-this',
|
secret: process.env.SESSION_SECRET || 'your-secret-key-change-this',
|
||||||
resave: false,
|
resave: false,
|
||||||
saveUninitialized: false,
|
saveUninitialized: true,
|
||||||
rolling: true,
|
rolling: true,
|
||||||
cookie: {
|
cookie: {
|
||||||
secure: process.env.NODE_ENV === 'production',
|
secure: process.env.NODE_ENV === 'production',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user