Skip to content

Commit

Permalink
fix: set max-age default cookie option to a sensible value
Browse files Browse the repository at this point in the history
  • Loading branch information
hf committed Aug 28, 2024
1 parent a48fe6f commit 4523bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export const DEFAULT_COOKIE_OPTIONS: CookieOptions = {
path: "/",
sameSite: "lax",
httpOnly: false,
maxAge: 60 * 60 * 24 * 365 * 1000,
// https://developer.chrome.com/blog/cookie-max-age-expires
maxAge: 400 * 24 * 60 * 60,
};

0 comments on commit 4523bc1

Please sign in to comment.