Relative Content

Tag Archive for react-nativefirebase-authenticationexposupabasesupabase-js

How to stop rerouting due to onAuthStateChange() call for updateUser()

Auth Flow In my React Native Expo project, I have subscribed to onAuthStateChanged() API which sets an authUser state from AuthProvider. Then the useEffect() in _layout.tsx gets triggered on authUser change, and routes according to the user’s login/registration state. App first logs in via Phone+OTP and then the registration process starts where user provides name […]

How to stop rerouting due to onAuthStateChange() call for updateUser()

Auth Flow In my React Native Expo project, I have subscribed to onAuthStateChanged() API which sets an authUser state from AuthProvider. Then the useEffect() in _layout.tsx gets triggered on authUser change, and routes according to the user’s login/registration state. App first logs in via Phone+OTP and then the registration process starts where user provides name […]

How to stop rerouting due to onAuthStateChange() call for updateUser()

Auth Flow In my React Native Expo project, I have subscribed to onAuthStateChanged() API which sets an authUser state from AuthProvider. Then the useEffect() in _layout.tsx gets triggered on authUser change, and routes according to the user’s login/registration state. App first logs in via Phone+OTP and then the registration process starts where user provides name […]