supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Handling PKCE flow during SSR

Open ahudovich opened this issue 1 year ago • 3 comments

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"

ahudovich avatar Jul 02 '24 13:07 ahudovich

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

larbish avatar Jul 09 '24 07:07 larbish

Will do today, and let you know!

ahudovich avatar Jul 09 '24 07:07 ahudovich

@AndreiHudovich Have you found a solution by any chance? I seem to have the same problem right now :(

muffe avatar Mar 21 '25 18:03 muffe