Hi everyone! I'm Teja, the founder of a social commerce app. I don't have much experience in native coding, and while I've been searching for a co-founder to help me, most have been delayed in responding. To move forward, I decided to create a minimum viable product (MVP) on my own. I'm currently using antigravity, supabase, and expo to develop the app. However, I'm encountering a frustrating problem: after signing in through Google OAuth, the app keeps loading indefinitely and only displays the loading spinner. It only works after I manually reload the app. This issue is preventing me from submitting it to the Play Store. Additionally, I need to implement the native Google OAuth since the Expo Auth doesn't function correctly in the Android APK. If anyone could assist me in resolving this issue and setting up the native Google OAuth, I would greatly appreciate it!
2 Answers
It sounds like your redirect URI might not be set up correctly. For production builds, make sure everything is configured properly. Check out the documentation on authentication for some guidance! You might find what you need there.
From my experience, an infinite loading spinner usually means that the authentication state isn't updating correctly after a redirect. Make sure the session data is saved before you try to fetch user data, and verify that your loading flag switches to false. For native Google OAuth, double-check your redirect URI, SHA-1 fingerprint, and app scheme; any mismatch could lead to issues. Adding logs at each step can help you troubleshoot things quickly!

Thanks for the tip! I did set up my redirect URI and it was working fine until I logged out and tried to log back in. Reloading the app does log me in without any issues though. I've also tried adding a key prop to the navigator and different fetch sequences, but no luck so far.