mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(electron): cookie expires too short (#6615)
This commit is contained in:
@@ -89,7 +89,12 @@ async function handleOauthJwt(url: string) {
|
||||
value: token,
|
||||
secure: true,
|
||||
name: 'affine_session',
|
||||
expirationDate: Math.floor(Date.now() / 1000 + 3600 * 24 * 7),
|
||||
expirationDate: Math.floor(
|
||||
Date.now() / 1000 +
|
||||
3600 *
|
||||
24 *
|
||||
399 /* as long as possible, cookie max expires is 400 days */
|
||||
),
|
||||
});
|
||||
|
||||
let hiddenWindow: BrowserWindow | null = null;
|
||||
|
||||
Reference in New Issue
Block a user