© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
5 replies
hyperjason

google log in for iphone (pc and android just works fine)

I've run into a tough issue that only affects iOS devices (both Safari and Chrome), and I'm hoping to get some advice on the best practice to solve it.

The Problem:
My React app uses Supabase Auth for Google Sign-In. The process works perfectly on PC and Android. However, on iPhones, after the user successfully authenticates with Google and is redirected back to my app, it gets permanently stuck on the initial loading screen and never navigates to after login page. The URL correctly shows the access_token in the hash, so the initial redirect is successful.

What I've Already Tried:

Verified URL Configuration: My Supabase Auth settings are correct (Site URL is set, and Redirect URLs includes the /** wildcard).

Fixed redirectTo: My signInWithOAuth call correctly uses options: { redirectTo: window.location.origin }.

Refactored Auth Logic: I've refactored my auth context and main app component to use onAuthStateChange as the single source of truth, eliminating any potential race conditions.

My Question:

What is the community's recommended, most robust pattern for solving this specific iOS post-login data fetching issue?

Any advice or examples would be greatly appreciated.

Thank you!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Log in with Google
SupabaseSSupabase / help-and-questions
4mo ago
Google auth works fine in eastern europe but auth callback fails in US
SupabaseSSupabase / help-and-questions
2mo ago
signInWithPassword does not sign in in v2, but signin in v1 works fine
SupabaseSSupabase / help-and-questions
4y ago
Google signs in automatically on android, even when signed out?
SupabaseSSupabase / help-and-questions
6mo ago