PhoneMultiFactorGenerator class
Stay organized with collections
Save and categorize content based on your preferences.
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
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
Returns:
PhoneMultiFactorAssertion
A PhoneMultiFactorAssertion which can be used with MultiFactorResolver.resolveSignIn()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.
[null,null,["Last updated 2024-01-19 UTC."],[],[],null,["# PhoneMultiFactorGenerator class\n\nProvider for generating a [PhoneMultiFactorAssertion](./auth.phonemultifactorassertion.md#phonemultifactorassertion_interface).\n\n**Signature:** \n\n export declare class PhoneMultiFactorGenerator \n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|-------------------------------------------------------------------------------------|-----------|--------|-----------------------------------------------------|\n| [FACTOR_ID](./auth.phonemultifactorgenerator.md#phonemultifactorgeneratorfactor_id) | `static` | string | The identifier of the phone second factor: `phone`. |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|-------------------------------------------------------------------------------------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [assertion(credential)](./auth.phonemultifactorgenerator.md#phonemultifactorgeneratorassertion) | `static` | Provides a [PhoneMultiFactorAssertion](./auth.phonemultifactorassertion.md#phonemultifactorassertion_interface) to confirm ownership of the phone second factor. |\n\nPhoneMultiFactorGenerator.FACTOR_ID\n-----------------------------------\n\nThe identifier of the phone second factor: `phone`.\n\n**Signature:** \n\n static FACTOR_ID: string;\n\nPhoneMultiFactorGenerator.assertion()\n-------------------------------------\n\nProvides a [PhoneMultiFactorAssertion](./auth.phonemultifactorassertion.md#phonemultifactorassertion_interface) to confirm ownership of the phone second factor.\n\nThis method does not work in a Node.js environment.\n\n**Signature:** \n\n static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion;\n\n#### Parameters\n\n| Parameter | Type | Description |\n|------------|--------------------------------------------------------------------------------|-------------|\n| credential | [PhoneAuthCredential](./auth.phoneauthcredential.md#phoneauthcredential_class) | |\n\n**Returns:**\n\n[PhoneMultiFactorAssertion](./auth.phonemultifactorassertion.md#phonemultifactorassertion_interface)\n\nA [PhoneMultiFactorAssertion](./auth.phonemultifactorassertion.md#phonemultifactorassertion_interface) which can be used with [MultiFactorResolver.resolveSignIn()](./auth.multifactorresolver.md#multifactorresolverresolvesignin)"]]