[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-05-09 UTC."],[],[],null,["# Firebase.Auth.PhoneAuthCredential Class Reference\n\nFirebase.Auth.PhoneAuthCredential\n=================================\n\nWraps phone number and verification information for authentication purposes.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [Firebase.Auth.Credential](/docs/reference/unity/class/firebase/auth/credential)\n\n| ### Constructors and Destructors ||\n|---|---|\n| [PhoneAuthCredential](#class_firebase_1_1_auth_1_1_phone_auth_credential_1a5528c4680dce17afcd9095dd0d0b0c11)`()` ||\n| [PhoneAuthCredential](#class_firebase_1_1_auth_1_1_phone_auth_credential_1ae8aa33681fe5e00831a8dc9e154443f2)`(`[PhoneAuthCredential](/docs/reference/unity/class/firebase/auth/phone-auth-credential#class_firebase_1_1_auth_1_1_phone_auth_credential)` rhs)` ||\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| [SmsCode](#class_firebase_1_1_auth_1_1_phone_auth_credential_1afc6250c2d9c5044e922fdbb8bcea5270) | `string` Gets the auto-retrieved SMS verification code if applicable. |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------|-------------------------|\n| [Dispose](#class_firebase_1_1_auth_1_1_phone_auth_credential_1a961fa3f956ab0b0e78828ac2920e113f)`(bool disposing)` | `virtual override void` |\n\nProperties\n----------\n\n### SmsCode\n\n```c#\nstring SmsCode\n``` \nGets the auto-retrieved SMS verification code if applicable.\n\nThis method is supported on Android devices only. It will return empty strings on other platforms.\n\nWhen SMS verification is used, you will be called back first via [PhoneAuthProvider.CodeSent](/docs/reference/unity/class/firebase/auth/phone-auth-provider#class_firebase_1_1_auth_1_1_phone_auth_provider_1a96f9a8f73784ca4c9ebe01e571ab218f), and later [PhoneAuthProvider.VerificationCompleted](/docs/reference/unity/class/firebase/auth/phone-auth-provider#class_firebase_1_1_auth_1_1_phone_auth_provider_1a64e9a7b72b2cf3f5e6da45b08b8ee66d) with a [PhoneAuthCredential](/docs/reference/unity/class/firebase/auth/phone-auth-credential#class_firebase_1_1_auth_1_1_phone_auth_credential) containing a non-null SMS code if auto-retrieval succeeded. If [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase) used another approach to verify the phone number and triggers a callback via [PhoneAuthProvider.VerificationCompleted](/docs/reference/unity/class/firebase/auth/phone-auth-provider#class_firebase_1_1_auth_1_1_phone_auth_provider_1a64e9a7b72b2cf3f5e6da45b08b8ee66d), then the SMS code can be null.\n\nPublic functions\n----------------\n\n### Dispose\n\n```c#\nvirtual override void Dispose(\n bool disposing\n)\n``` \n\n### PhoneAuthCredential\n\n```c#\n PhoneAuthCredential()\n``` \n\n### PhoneAuthCredential\n\n```c#\n PhoneAuthCredential(\n PhoneAuthCredential rhs\n)\n```"]]