PhoneAuthCredential class
Stay organized with collections
Save and categorize content based on your preferences.
Represents the credentials returned by PhoneAuthProvider.
Signature:
export declare class PhoneAuthCredential extends AuthCredential
Extends: AuthCredential
Methods
Method |
Modifiers |
Description |
fromJSON(json) |
static |
Generates a phone credential based on a plain object or a JSON string. |
toJSON() |
|
Returns a JSON-serializable representation of this object. |
PhoneAuthCredential.fromJSON()
Generates a phone credential based on a plain object or a JSON string.
Signature:
static fromJSON(json: object | string): PhoneAuthCredential | null;
Parameters
Parameter |
Type |
Description |
json |
object | string |
|
Returns:
PhoneAuthCredential | null
PhoneAuthCredential.toJSON()
Returns a JSON-serializable representation of this object.
Signature:
toJSON(): object;
Returns:
object
a JSON-serializable representation of this object.
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,["# PhoneAuthCredential class\n\nRepresents the credentials returned by [PhoneAuthProvider](./auth.phoneauthprovider.md#phoneauthprovider_class).\n\n**Signature:** \n\n export declare class PhoneAuthCredential extends AuthCredential \n\n**Extends:** [AuthCredential](./auth.authcredential.md#authcredential_class)\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|-----------------------------------------------------------------------------|-----------|------------------------------------------------------------------------|\n| [fromJSON(json)](./auth.phoneauthcredential.md#phoneauthcredentialfromjson) | `static` | Generates a phone credential based on a plain object or a JSON string. |\n| [toJSON()](./auth.phoneauthcredential.md#phoneauthcredentialtojson) | | Returns a JSON-serializable representation of this object. |\n\nPhoneAuthCredential.fromJSON()\n------------------------------\n\nGenerates a phone credential based on a plain object or a JSON string.\n\n**Signature:** \n\n static fromJSON(json: object | string): PhoneAuthCredential | null;\n\n#### Parameters\n\n| Parameter | Type | Description |\n|-----------|------------------|-------------|\n| json | object \\| string | |\n\n**Returns:**\n\n[PhoneAuthCredential](./auth.phoneauthcredential.md#phoneauthcredential_class) \\| null\n\nPhoneAuthCredential.toJSON()\n----------------------------\n\nReturns a JSON-serializable representation of this object.\n\n**Signature:** \n\n toJSON(): object;\n\n**Returns:**\n\nobject\n\na JSON-serializable representation of this object."]]