Wraps phone number and verification information for authentication purposes.
| public static final Creator<PhoneAuthCredential> | CREATOR |
| String |
getProvider()
Returns the unique string identifier for the provider type with which the
credential is associated.
|
| String |
getSignInMethod()
Returns the unique string identifier for the sign in method with which the
credential is associated.
|
| String |
getSmsCode()
Gets the auto-retrieved SMS verification code if applicable.
|
Returns the unique string identifier for the provider type with which the credential is associated.
Returns the unique string identifier for the sign in method with which the
credential is associated. Should match that returned by
fetchSignInMethodsForEmail(String) after this user has signed in with this
type of credential.
Gets the auto-retrieved SMS verification code if applicable. When SMS verification
is used, you will be called back first via
onCodeSent(String, PhoneAuthProvider.ForceResendingToken), and later
onVerificationCompleted(PhoneAuthCredential) with a PhoneAuthCredential
containing a non-null SMS code if auto-retrieval succeeded. If Firebase used another
approach to verify the phone number and triggers a callback via
onVerificationCompleted(PhoneAuthCredential), then SMS code can be
null.