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

useSupabaseUser doesn't update after magic link or oAuth on mobile #208

Closed
sdaoud opened this issue Jul 20, 2023 · 2 comments · Fixed by #222
Closed

useSupabaseUser doesn't update after magic link or oAuth on mobile #208

sdaoud opened this issue Jul 20, 2023 · 2 comments · Fixed by #222
Labels
bug Something isn't working

Comments

@sdaoud
Copy link

sdaoud commented Jul 20, 2023

Version

@nuxtjs/supabase: 0.3.8
nuxt: 3.6.5
iOS version: 16.5.1
Model: iPhone X

Steps to reproduce

Signing in via oAuth or magic link does not work on iOS Safari. useSupabaseUser never updates and the user is never logged in on the client. In contrast, magic links and oAuth do work on Chrome and Safari on MacOS.

Everything worked perfectly in 0.3.5

What is Expected?

Signing in via magic link or oAuth should set the value of useSupabaseUser to the currently logged in user on iOS Safari

What is actually happening?

useSupabaseUser never updates

@sdaoud sdaoud added the bug Something isn't working label Jul 20, 2023
@riemervdzee
Copy link

I'm having the same issue with Google oAuth but With google Chrome on MacOs 😅

Downgrading @supabase/gotrue-js to 2.42.0 resolved my issue. It was previously on 2.44.1 as sub-dependency

Version info:
@nuxtjs/supabase: 0.3.8
nuxt: 3.6.5

@IsraelOrtuno
Copy link
Contributor

I had this issue too, seems like fixed using:

  supabase: {
    clientOptions: {
      auth: {
        flowType: 'implicit',
      },
    },
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants