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 used along 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 code that 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

    Returns Promise<UserCredential>