PhoneAuthCredential class

Represents the credentials returned by PhoneAuthProvider.

Signature:

exportdeclareclassPhoneAuthCredentialextendsAuthCredential

Extends:AuthCredential

Methods

MethodModifiersDescription
fromJSON(json)staticGenerates 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:

staticfromJSON(json:object|string):PhoneAuthCredential|null;

Parameters

ParameterTypeDescription
jsonobject | 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.