UNPKG

voluptasmollitia

Version:
35 lines (20 loc) 965 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [ConfirmationResult](./auth.confirmationresult.md) &gt; [confirm](./auth.confirmationresult.confirm.md) ## ConfirmationResult.confirm() method Finishes a phone number sign-in, link, or reauthentication. <b>Signature:</b> ```typescript confirm(verificationCode: string): Promise<UserCredential>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | verificationCode | string | The code that was sent to the user's mobile device. | <b>Returns:</b> Promise&lt;[UserCredential](./auth.usercredential.md)<!-- -->&gt; ## Example ```javascript const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier); // Obtain verificationCode from the user. const userCredential = await confirmationResult.confirm(verificationCode); ```