Stay organized with collections
Save and categorize content based on your preferences.
Properties
verificationId
verificationId: string
Methods
confirm
- confirm
(
verificationCode
:
string
)
:
Promise
<
UserCredential
>
-
Parameters
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- [auth](/docs/reference/js/v8/firebase.auth).\n- ConfirmationResult \nA result from a phone number sign-in, link, or reauthenticate call.\n\nIndex\n\nProperties\n\n- [verificationId](/docs/reference/js/v8/firebase.auth.ConfirmationResult#verificationid)\n\nMethods\n\n- [confirm](/docs/reference/js/v8/firebase.auth.ConfirmationResult#confirm)\n\nProperties\n\nverificationId \nverificationId: string \nThe phone number authentication operation's verification ID. This can be used\nalong with the verification code to initialize a phone auth credential.\n\nMethods\n\nconfirm\n\n- confirm ( verificationCode : string ) : Promise \\\u003c [UserCredential](/docs/reference/js/v8/firebase.auth#usercredential) \\\u003e\n- Finishes a phone number sign-in, link, or reauthentication, given the code\n that was sent to the user's mobile device.\n\n Error Codes\n\n auth/invalid-verification-code\n : Thrown if the verification code is not valid.\n\n auth/missing-verification-code\n : Thrown if the verification code is missing.\n\n Parameters\n -\n\n verificationCode: string\n\nReturns Promise\\\u003c[UserCredential](/docs/reference/js/v8/firebase.auth#usercredential)\\\u003e"]]
A result from a phone number sign-in, link, or reauthenticate call.