PhoneMultiFactorGenerator class

Provider for generating a PhoneMultiFactorAssertion.

Signature:

exportdeclareclassPhoneMultiFactorGenerator

Properties

PropertyModifiersTypeDescription
FACTOR_IDstaticstringThe identifier of the phone second factor: phone.

Methods

MethodModifiersDescription
assertion(credential)staticProvides a PhoneMultiFactorAssertion to confirm ownership of the phone second factor.

PhoneMultiFactorGenerator.FACTOR_ID

The identifier of the phone second factor: phone.

Signature:

staticFACTOR_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:

staticassertion(credential:PhoneAuthCredential):PhoneMultiFactorAssertion;

Parameters

ParameterTypeDescription
credentialPhoneAuthCredential

Returns:

PhoneMultiFactorAssertion

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