diff --git a/server/api/auth/sign-in-google.post.ts b/server/api/auth/sign-in-google.post.ts index aa5d2cd..76c1cf6 100644 --- a/server/api/auth/sign-in-google.post.ts +++ b/server/api/auth/sign-in-google.post.ts @@ -98,5 +98,6 @@ export const signInUser = ( httpOnly: false, secure: true, sameSite: 'lax', + maxAge: 90 * 86400, }) } diff --git a/tests-e2e/setup/auth.setup.mts b/tests-e2e/setup/auth.setup.mts index 7b4073c..a29105b 100644 --- a/tests-e2e/setup/auth.setup.mts +++ b/tests-e2e/setup/auth.setup.mts @@ -13,7 +13,7 @@ setup('authenticate', async ({ page }) => { sameSite: 'Lax', path: '/', domain: domain, - expires: -1, + expires: 90 * 86400, }]) await page.context().storageState({ path: authFile });