A result from a phone number sign-in, link, or reauthenticate call.
Index
Properties
Methods
Properties
verificationId
verificationId:string
The phone number authentication operation's verification ID. This can be usedalong with the verification code to initialize a phone auth credential.
Methods
confirm
- confirm(verificationCode: string):Promise<UserCredential>
Finishes a phone number sign-in, link, or reauthentication, given the codethat was sent to the user's mobile device.
Error Codes
- auth/invalid-verification-code
- Thrown if the verification code is not valid.
- auth/missing-verification-code
- Thrown if the verification code is missing.
Parameters
verificationCode:string
ReturnsPromise<UserCredential>
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 2022-07-27 UTC.