feat: prune session interval
This commit is contained in:
@@ -45,6 +45,7 @@ app.use(
|
|||||||
pool: pool,
|
pool: pool,
|
||||||
tableName: 'session',
|
tableName: 'session',
|
||||||
createTableIfMissing: true,
|
createTableIfMissing: true,
|
||||||
|
pruneSessionInterval: 60 * 60,
|
||||||
}),
|
}),
|
||||||
secret: 'mx-session',
|
secret: 'mx-session',
|
||||||
resave: false, // Do not resave the session if it hasn't changed
|
resave: false, // Do not resave the session if it hasn't changed
|
||||||
|
|||||||
Reference in New Issue
Block a user