PhoneAuthProvider
Phone number sign-in, mirroring com.google.firebase.auth.PhoneAuthProvider: verifyPhoneNumber sends an SMS code and reports to the PhoneAuthOptions callbacks; getCredential turns the verification id and the code the user entered into a credential.
On Android the SDK can also verify the number without user input (SMS auto-retrieval); the other platforms always report OnVerificationStateChangedCallbacks.onCodeSent.
Types
Link copied to clipboard
A token of a sent code; passing it to PhoneAuthOptions.Builder.setForceResendingToken sends a new one.
Resends the code of the verification options with the same options.
Link copied to clipboard
Functions
Link copied to clipboard
fun verifyPhoneNumber(phoneNumber: String, timeout: Long, unit: TimeUnit, activity: Activity, callbacks: PhoneAuthProvider.OnVerificationStateChangedCallbacks)
fun verifyPhoneNumber(phoneNumber: String, timeout: Long, unit: TimeUnit, activity: Activity, callbacks: PhoneAuthProvider.OnVerificationStateChangedCallbacks, forceResendingToken: PhoneAuthProvider.ForceResendingToken)
Android only: verifies phoneNumber with the deprecated instance API.
fun verifyPhoneNumber(phoneNumber: String, timeout: Long, unit: TimeUnit, activity: Activity, callbacks: PhoneAuthProvider.OnVerificationStateChangedCallbacks)
fun verifyPhoneNumber(phoneNumber: String, timeout: Long, unit: TimeUnit, activity: Activity, callbacks: PhoneAuthProvider.OnVerificationStateChangedCallbacks, forceResendingToken: PhoneAuthProvider.ForceResendingToken)
Android only: verifies phoneNumber with the deprecated instance API.