Skip to content
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

Can't set certain cookie value, weird behavior #4589

Open
dentroai opened this issue Jan 5, 2025 · 1 comment
Open

Can't set certain cookie value, weird behavior #4589

dentroai opened this issue Jan 5, 2025 · 1 comment

Comments

@dentroai
Copy link

dentroai commented Jan 5, 2025

Describe the bug
Trying to use supabase with their inbuilt cookie store.
It almost works. The only problem is, that a certain cookie variable can't be set in a certain setting.

When using password based log in, the supabase.auth.token value can be correctly set alongside the supabase.auth.token-code-verifier value:
image

However, when using Google OAuth login, the supabase.auth.token value never gets reflected in the cookie:
image

The weird thing is, when logging the value of auth_storage, it actually DOES log that supabase.auth.token is set.

But it's never reflected in the actual cookie that can be seen via the browser dev tools.

It's driving me crazy that I can't fcking set a cookie var, even though the logs say it does get set.

Any help figuring out why it's not reflected in the actual cookie value is very much appreciated! 🙏🏼

To Reproduce
Steps to reproduce the behavior:

It's quite a lot of work to set up, cause you need a supabase project AND a google app.
Can screenshare with my setup during office hours to mitigate anybody having to set up those two services themselves.

Expected behavior
Set the cookie supabase.auth.token during google oauth just like during password auth - I mean it's just a string like all other values

Specifics (please complete the following information):

  • Python Version: 3.12
  • Reflex Version: 0.6.7
  • OS: linux
  • Browser (Optional): firefox and chrome

Additional context

Explanation about inbuilt cookie store of supabase: https://discord.com/channels/839993398554656828/1323027147929030746/1323035611703283733

Initial discord thread: https://discord.com/channels/1029853095527727165/1324480797687677020/1324488478410412144

Copy link

linear bot commented Jan 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant