nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
671 stars 123 forks source link

Handling PKCE flow during SSR #380

Open AndreiHudovich opened 2 months ago

AndreiHudovich commented 2 months ago

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"
larbish commented 2 months ago

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

AndreiHudovich commented 2 months ago

Will do today, and let you know!