PhoneMultiFactorGenerator class

Provider for generating a PhoneMultiFactorAssertion.

Signature:

export declare class PhoneMultiFactorGenerator 

Properties

Property Modifiers Type Description
FACTOR_ID static string The identifier of the phone second factor: phone.

Methods

Method Modifiers Description
assertion(credential) static Provides a PhoneMultiFactorAssertion to confirm ownership of the phone second factor.

PhoneMultiFactorGenerator.FACTOR_ID

The identifier of the phone second factor: phone.

Signature:

static FACTOR_ID: string;

PhoneMultiFactorGenerator.assertion()

Provides a PhoneMultiFactorAssertion to confirm ownership of the phone second factor.

This method does not work in a Node.js environment.

Signature:

static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion;

Parameters

Parameter Type Description
credential PhoneAuthCredential

Returns:

PhoneMultiFactorAssertion

A PhoneMultiFactorAssertion which can be used with MultiFactorResolver.resolveSignIn()