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 92ecd82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ 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
// https://httpwg.org/http-extensions/draft-ietf-httpbis-rfc6265bis.html#name-cookie-lifetime-limits
maxAge: 400 * 24 * 60 * 60,
};

0 comments on commit 92ecd82

Please sign in to comment.