Firebase. Auth. PhoneAuthCredential
Wraps phone number and verification information for authentication purposes.
Summary
Inheritance
Inherits from:Firebase.Auth.CredentialConstructors and Destructors | |
|---|---|
PhoneAuthCredential() | |
PhoneAuthCredential(PhoneAuthCredential rhs) |
Properties | |
|---|---|
SmsCode | stringGets the auto-retrieved SMS verification code if applicable. |
Public functions | |
|---|---|
Dispose(bool disposing) | virtual override void |
Properties
SmsCode
stringSmsCode
Gets the auto-retrieved SMS verification code if applicable.
This method is supported on Android devices only. It will return empty strings on other platforms.
When SMS verification is used, you will be called back first viaPhoneAuthProvider.CodeSent, and laterPhoneAuthProvider.VerificationCompleted with aPhoneAuthCredential containing a non-null SMS code if auto-retrieval succeeded. IfFirebase used another approach to verify the phone number and triggers a callback viaPhoneAuthProvider.VerificationCompleted, then the SMS code can be null.
Public functions
Dispose
virtualoverridevoidDispose(booldisposing)
PhoneAuthCredential
PhoneAuthCredential()
PhoneAuthCredential
PhoneAuthCredential(PhoneAuthCredentialrhs)
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-09 UTC.