The verification code. Will only be available if auto verification has taken place.
A native JavaScript error if an error occurs.
The current phone auth verification state.
sent: On iOS, this is the final event received. Once sent, show a visible input box asking the user to enter the verification code.timeout: Auto verification has timed out. Show a visible input box asking the user to enter the verification code.verified: The verification code has automatically been verified by the Android device. The snapshot contains the verification ID & code to create a credential.error: An error occurred. Handle or allow the promise to reject.The verification ID to build a PhoneAuthProvider credential.
A snapshot interface of the current phone auth state.
Example