withPhoneAuth
?withPhoneAuth(App, config)
doorman
publicProjectId
SplashScreen
A react component that shows up before the auth flow. next
. You should have a button that tells people to sign in with phone, and the onPress
of this button should be the next
prop.LoadingScreen
A react component that will be shown while the auth state is initially loading.confirmScreenProps
AuthFlow.ConfirmScreen
will be passed down to it as a dictionary, except onCodeVerified
. That prop is exposed directly as here instead.phoneScreenProps
AuthFlow.PhoneScreen
will be passed down to it, except onSmsSuccessfullySent
. That prop is exposed directly as here instead.onSmsSuccessfullySent
phoneNumber
field.onUserSuccessfullySignedIn
onCodeVerified
, since there is a network request made between the successful code and signing in with firebase.user
field. user
could be null
, so check for that.onCodeVerified
token
field.onAuthStateChanged
follows the same API as the one from the Firebase Auth API.initialPhoneNumber
+1
which makes the initial flag 🇺🇸onAuthStateChanged
example