Skip to content

Commit

Permalink
Add maxAge to cookie to 90 days
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Dec 1, 2024
1 parent cc79ac2 commit 180b3fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/api/auth/sign-in-google.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,6 @@ export const signInUser = (
httpOnly: false,
secure: true,
sameSite: 'lax',
maxAge: 90 * 86400,
})
}
2 changes: 1 addition & 1 deletion tests-e2e/setup/auth.setup.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ setup('authenticate', async ({ page }) => {
sameSite: 'Lax',
path: '/',
domain: domain,
expires: -1,
expires: 90 * 86400,
}])

await page.context().storageState({ path: authFile });
Expand Down

0 comments on commit 180b3fb

Please sign in to comment.