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.
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
LOG
LOG Auth state change: TOKEN_REFRESHED
LOG
LOG
LOG
LOG
LOG
LOG
LOG
LOG
LOG
LOG
LOG
LOG Auth state change: SIGNED_IN
LOG
LOG
LOG
I will provide my code at the comments.
