Increase session expiry time
This commit is contained in:
parent
734917f87b
commit
24e5e8e8b1
@ -86,8 +86,7 @@ export const createAndStartServer = async (
|
||||
saveUninitialized: true,
|
||||
cookie: {
|
||||
secure: new URL(appOriginUrl).protocol === 'https:',
|
||||
// 23 hours (less than 24 hours to avoid sessionSigs expiration issues)
|
||||
maxAge: 23 * 60 * 60 * 1000,
|
||||
maxAge: 30 * 24 * 60 * 60 * 1000,
|
||||
domain: domain || undefined,
|
||||
sameSite: new URL(appOriginUrl).protocol === 'https:' ? 'none' : 'lax',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user