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

Handling PKCE flow during SSR #380

Open
AndreiHudovich opened this issue Jul 2, 2024 · 2 comments
Open

Handling PKCE flow during SSR #380

AndreiHudovich opened this issue Jul 2, 2024 · 2 comments
Labels
question Further information is requested

Comments

@AndreiHudovich
Copy link

When I try to sign in with auth providers like Google or Apple, useSupabaseUser() returns false during SSR. But:

  1. It returns the user object after hydration on the client side without any issues.
  2. The code works fine server-side when using the standard email / password flow.

Could it be a bug somewhere, or is it just not possible to handle PKCE flow during SSR with this module?

Versions

"@nuxtjs/supabase": "^1.2.2",
"@supabase/supabase-js": "^2.44.2",
"nuxt": "3.12.2"
@AndreiHudovich AndreiHudovich added the question Further information is requested label Jul 2, 2024
@larbish
Copy link
Collaborator

larbish commented Jul 9, 2024

@AndreiHudovich, I'm not having any issue with GitHub provider. Could you try with the latest release?

@AndreiHudovich
Copy link
Author

Will do today, and let you know!

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

No branches or pull requests

2 participants