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

Unable to perform Google Sign In after upgrade to v2.44.4 #1245

Open
2 tasks done
luiyongsheng opened this issue Jul 17, 2024 · 0 comments
Open
2 tasks done

Unable to perform Google Sign In after upgrade to v2.44.4 #1245

luiyongsheng opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@luiyongsheng
Copy link

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

My web app was using v2.44.3. The app itself will automatically signs user in anonymously after user passed the Cloudflare Turnstile checks. We will prompt user to login with their Google accounts at multiple places, there are two options for user to choose from:

  1. Connect your Google account (uses the linkIdentity() function)
  2. Sign in (uses the signInWithOAuth() function)

But after I upgrade the package to v2.44.4, the user sign in is broken, users still remain as guest/anon even after multiple attempts to login or connect their Google account.

To Reproduce

Steps to reproduce the behavior:

  1. Follow the Supabase official tutorial to create a NextJS App Router project with server side auth.
  2. Create a callback endpoint to capture the code for supabase.auth.exchangeCodeForSession(code);
  3. Read the value of await supabase.auth.getUser();, user is not logged in.
  4. Downgrade the supabase-js version to v2.44.3, you will be able to see the user data after exchangeCodeForSession()

Expected behavior

Expected user to be logged in.

Screenshots

N/A

System information

  • OS: macOS
  • Version of supabase-js: v2.44.4
  • Version of Node.js: v20.11.0

Additional context

N/A

@luiyongsheng luiyongsheng added the bug Something isn't working label Jul 17, 2024
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

No branches or pull requests

1 participant