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 f0c1750
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,
// Set to 5 years because Chrome does not accept very large values of this number. All Supabase Auth sessions effectively will end after this much time.
maxAge: 5 * 60 * 60 * 24 * 365,
};

0 comments on commit f0c1750

Please sign in to comment.