Jump to top

ConfirmationResult

interface

A result from a auth#signInWithPhoneNumber call.

Example
// Force a new message to be sent
const result = await firebase.auth().signInWithPhoneNumber('#4423456789');
const user = await result.confirm('12345');

Properties

verificationId

</>

The phone number authentication operation's verification ID. This can be used along with the verification code to initialize a phone auth credential.

verificationId: string | null;

Methods

confirm

</>

Finishes the sign in flow. Validates a code that was sent to the users device.

confirm(verificationCode: string): Promise<UserCredential | null>;