-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set-Cookie header is ignored #18564
Comments
Just faced this bug today where my Github OAuth stopped working ! But I think it could be related to user-browser |
Having the same issue with Facebook login, Google login works great but facebook loogin fails and the cookie error is showing in the console |
afaik this is fixed here https://github.com/supabase/auth-helpers/pull/669/files |
Updated to 0.0.7 |
Could you try updating to 0.0.9? If this is still not working could you DM me a link to a GitHub repo so I can take a look? |
Updating to 0.0.9 fixed the issue for me. Thanks @dijonmusters |
cookie length in chunk is 3143 But after encoding in Set-Cookie header value length is 4262 |
This is still happening for me The session returns properly but the cookie cannot be set... |
Yes same here - if I login with a user with no metadata, the cookie is fine and no issue. I've had to refactor my app to store the metadata previously in the user into a separate table: userdata |
I'm facing this issue as well. I'm not sure why this issue is closed, as the issue persists with the latest version. Is there any feasible workaround available? |
yeah, why is this closed? happening to me too, any workaround known? |
It seems this is fixed with the lates supabase-ssr 0.1.0 release. 👍🏻 |
I still have the same issue with supabase-ssr 0.1.0 and supabase-js 2.39.7. |
@layerzzzio Did you ever fix this? |
Can you confirm you are running the latest releases of both packages. If you are experiencing the issue, please also provide the length of the cookie to help us investigate. |
I use I checked the length of my cookies , the length of my cookies cookies: {
get(name: string) {
return cookieStore.get(name)?.value;
},
set(name: string, value: string, options: CookieOptions) {
console.log("cookie length", value.length)
cookieStore.set({ name, value, ...options });
},
remove(name: string, options: CookieOptions) {
cookieStore.delete({ name, ...options });
},
}, And the most interesting thing is that I can log in from my main account, but I can’t from the secondary one ((( |
Bug report
Describe the bug
Set-Cookie header is ignored in response from url: http://localhost:3000/auth/sign-in. The combined size of the name and value must be less than or equal to 4096 characters.
To Reproduce
Use the new supabase/ssr package
Expected behavior
Should be able to set the cookie
The text was updated successfully, but these errors were encountered: