Jump to top

PhoneAuthError

interface

A custom error in the event verifying a phone number failed.

Example
firebase.auth().verifyPhoneNumber('+4423456789')
 .on('state_changed', (phoneAuthSnapshot) => {
   console.log('Snapshot state: ', phoneAuthSnapshot.state);
 }, (phoneAuthError) => {
   console.error('Error: ', phoneAuthError.message);
 });

Properties

code

</>

The code the verification failed with.

code: string | null;

message

</>

JavaScript error message.

message: string | null;

stack

</>

JavaScript error stack trace.

stack: string | null;

verificationId

</>

The verification ID which failed.

verificationId: string;