docs-devsite/auth.phonemultifactorgenerator.md
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 %}
Provider for generating a PhoneMultiFactorAssertion<!-- -->.
<b>Signature:</b>
export declare class PhoneMultiFactorGenerator
| Property | Modifiers | Type | Description |
|---|---|---|---|
| FACTOR_ID | <code>static</code> | string | The identifier of the phone second factor: <code>phone</code>. |
| Method | Modifiers | Description |
|---|---|---|
| assertion(credential) | <code>static</code> | Provides a PhoneMultiFactorAssertion to confirm ownership of the phone second factor. |
The identifier of the phone second factor: phone<!-- -->.
<b>Signature:</b>
static FACTOR_ID: string;
Provides a PhoneMultiFactorAssertion to confirm ownership of the phone second factor.
This method does not work in a Node.js environment.
<b>Signature:</b>
static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion;
| Parameter | Type | Description |
|---|---|---|
| credential | PhoneAuthCredential |
<b>Returns:</b>
A PhoneMultiFactorAssertion which can be used with MultiFactorResolver.resolveSignIn()