Bug: Account Data Cookie Exceeds 4KB Browser Limit for OAuth Providers with Large Tokens
Bug: Account Data Cookie Exceeds 4KB Browser Limit for OAuth Providers with Large Tokens: a task in LegoFlow-SWE (Harbor dataset). When using OAuth providers that return large JWT tokens (such as AWS Cognito), the better-auth.account data cookie silently fails to be set in the browser because its…
The task
When using OAuth providers that return large JWT tokens (such as AWS Cognito), the `better-auth.account_data` cookie silently fails to be set in the browser because its value exceeds the ~4KB browser cookie size limit. This causes `getAccessToken()` to fail with "Account Not Found" when called from server-side…
Part of Lego-X/LegoFlow-SWE.