The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > PhoneAuthCredential

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.