mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
* Support function links to function overloads. * Improve readability of headings for functions.
1.7 KiB
1.7 KiB
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 %}
PhoneAuthCredential class
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.