feat: prune session interval

This commit is contained in:
Karishma Shukla
2025-04-27 20:12:01 +05:30
committed by GitHub
parent 0a88f2461a
commit 15d4fce194

View File

@@ -45,6 +45,7 @@ app.use(
pool: pool,
tableName: 'session',
createTableIfMissing: true,
pruneSessionInterval: 60 * 60,
}),
secret: 'mx-session',
resave: false, // Do not resave the session if it hasn't changed