Back to Firebase Js Sdk

PhoneAuthCredential class

docs-devsite/auth.phoneauthcredential.md

12.12.11.6 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 %}

PhoneAuthCredential class

Represents the credentials returned by PhoneAuthProvider<!-- -->.

<b>Signature:</b>

typescript
export declare class PhoneAuthCredential extends AuthCredential 

<b>Extends:</b> AuthCredential

Methods

MethodModifiersDescription
fromJSON(json)<code>static</code>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.

<b>Signature:</b>

typescript
static fromJSON(json: object | string): PhoneAuthCredential | null;

Parameters

ParameterTypeDescription
jsonobject | string

<b>Returns:</b>

PhoneAuthCredential | null

PhoneAuthCredential.toJSON()

Returns a JSON-serializable representation of this object.

<b>Signature:</b>

typescript
toJSON(): object;

<b>Returns:</b>

object

a JSON-serializable representation of this object.