feat: adds cookies.encode option allowing minimal cookie sizes#126
Conversation
|
Nice. Have you considered setting the fallback for |
0679e64 to
816f906
Compare
816f906 to
32a260d
Compare
|
@j4w8n Null |
🤖 I have created a release *beep* *boop* --- ## [0.8.0](v0.7.0...v0.8.0) (2025-11-26) ### Features * adds `cookies.encode` option allowing minimal cookie sizes ([#126](#126)) ([cf38b22](cf38b22)) * publish SSR under deprecated auth-helpers package names ([#127](#127)) ([e8b6102](e8b6102)) * update supabase-js to latest ([#133](#133)) ([d65044d](d65044d)) * update supabase-js to latest ([#145](#145)) ([08bf7d6](08bf7d6)) ### Bug Fixes * cookies console warnings ([#136](#136)) ([64ff6b3](64ff6b3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
Is it safe to switch from the default behavior to |
Adds an experimental option
encodeon thecookiesobject when usingcreateBrowserClient()andcreateServerClient().If this is set to
tokens-onlythen only the user's access token and refresh token will be encoded in the cookies, causing significant cookie size savings, often greater than 50%. It utilizes split session storage inauth-js, with some trade-offs such as the inability to access theuserproperty on thesupabase.auth.getSession()object in the server. This wasn't supposed to be done anyway, andgetClaims()is a secure alternative for it.