Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: remove user and entitlements from auth session cookie #669

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

ChibiBlasphem
Copy link
Contributor

Too much information was stored in auth session cookie, namely "user" and "entitlements" taking too much space in the cookie (which are limited to 4KB in size in total for a domain) nearing the maximum size they can take.
They were only used in the isAuthenticated auth service function.

What we did is remove user and entitlements from the cookie and instead of reading them from the cookie in the isAuthenticated auth service function, we now call the call the dedicated services.

@ChibiBlasphem ChibiBlasphem requested a review from a team January 28, 2025 10:51
@ChibiBlasphem ChibiBlasphem force-pushed the fix/remix-cookie-length branch from e9ee45a to e364021 Compare January 28, 2025 10:52
@ChibiBlasphem ChibiBlasphem enabled auto-merge (squash) January 28, 2025 11:02
@ChibiBlasphem ChibiBlasphem merged commit 9ee4eba into main Jan 28, 2025
3 checks passed
@ChibiBlasphem ChibiBlasphem deleted the fix/remix-cookie-length branch January 28, 2025 11:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants