java.lang.Object | ||
↳ | com.google.firebase.auth.AuthCredential | |
↳ | com.google.firebase.auth.PhoneAuthCredential |
Wraps phone number and verification information for authentication purposes.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the unique string identifier for the provider type with which the credential is
associated.
| |||||||||||
Gets the auto-retrieved SMS verification code if applicable.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns the unique string identifier for the provider type with which the credential is associated.
Returns | |
---|---|
String |
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
.
Returns | |
---|---|
String |