Phone Number Authentication in Android With Firebase (7 Steps)
2 min readJan 31, 2020
You can use Firebase Authentication to sign in a user by sending an SMS message to the user’s phone. The user signs in using a one-time code contained in the SMS message.
OnVerificationStateChangedCallbacks
PhoneAuthCredential
object, whether in the onVerificationCompleted
callback or by calling PhoneAuthProvider.getCredential
, complete the sign-in flow by passing the PhoneAuthCredential
object to FirebaseAuth.signInWithCredential
: