[backend] specify undefined session params
This commit is contained in:
parent
be8e3150a6
commit
057affe860
|
@ -15,6 +15,8 @@ app.use(cookieParser());
|
||||||
app.use(session({
|
app.use(session({
|
||||||
secret: process.env.SECRET,
|
secret: process.env.SECRET,
|
||||||
cookie: {},
|
cookie: {},
|
||||||
|
resave: false,
|
||||||
|
saveUninitialized: false,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
app.use(async function (req, res, next) {
|
app.use(async function (req, res, next) {
|
||||||
|
|
Reference in New Issue