Skip to content

Handling PKCE flow during SSR #380

Open
@AndreiHudovich

Description

@AndreiHudovich

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions