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.