SupabaseS
Supabaseβ€’4mo ago
dev_edbert

Why I keep stuck at Login in using Supabase Auth

I'm currently developing a mobile app Expo React Native with Supabase integration

I just don't understand, no matter how many tries I modify the code logic, this problem is unsolvable... I able to get the JWT token and auth at Supabase but... Every TIME during the first try of the App, whenever I try to login is always stuck forever there...

All my logs mention everything was succesfull, I able to sign in with Supabase but why the hell it keeps stuck at Logging in?? Here's the log:

LOG πŸ”§ AuthProvider render - isAuthenticated: false isLoading: true
LOG πŸ”§ AuthProvider: Initializing auth state
LOG Auth state change: TOKEN_REFRESHED
LOG πŸ”§ AuthProvider: Auth state changed: TOKEN_REFRESHED
LOG πŸ”§ AuthProvider: New session: exists
LOG πŸ”§ AuthProvider render - isAuthenticated: true isLoading: false
LOG πŸ” Login attempt started
LOG πŸ“§ Email: edbetjonnathan@gmail.com
LOG πŸ”’ Password length: 9
LOG πŸ“€ Calling signIn function...
LOG πŸ” AuthContext: signIn called
LOG πŸ“§ Email: edbetjonnathan@gmail.com
LOG πŸ“€ Calling supabase.auth.signInWithPassword...
LOG πŸ”§ AuthProvider render - isAuthenticated: true isLoading: true
LOG Auth state change: SIGNED_IN
LOG πŸ”§ AuthProvider: Auth state changed: SIGNED_IN
LOG πŸ”§ AuthProvider: New session: exists
LOG πŸ”§ AuthProvider render - isAuthenticated: true isLoading: false

I will provide my code at the comments.
WhatsApp_Image_2025-09-15_at_13.32.00_4b2ca95e.jpg
Was this page helpful?