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({
|
||||
secret: process.env.SESSION_SECRET || 'your-secret-key-change-this',
|
||||
resave: false,
|
||||
saveUninitialized: false,
|
||||
saveUninitialized: true,
|
||||
rolling: true,
|
||||
cookie: {
|
||||
secure: process.env.NODE_ENV === 'production',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user