Back to Firebase Js Sdk

PhoneMultiFactorGenerator class

docs-devsite/auth.phonemultifactorgenerator.md

12.12.12.2 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

PhoneMultiFactorGenerator class

Provider for generating a PhoneMultiFactorAssertion<!-- -->.

<b>Signature:</b>

typescript
export declare class PhoneMultiFactorGenerator 

Properties

PropertyModifiersTypeDescription
FACTOR_ID<code>static</code>stringThe identifier of the phone second factor: <code>phone</code>.

Methods

MethodModifiersDescription
assertion(credential)<code>static</code>Provides a PhoneMultiFactorAssertion to confirm ownership of the phone second factor.

PhoneMultiFactorGenerator.FACTOR_ID

The identifier of the phone second factor: phone<!-- -->.

<b>Signature:</b>

typescript
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.

<b>Signature:</b>

typescript
static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion;

Parameters

ParameterTypeDescription
credentialPhoneAuthCredential

<b>Returns:</b>

PhoneMultiFactorAssertion

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