Representa as credenciais retornadas por PhoneAuthProvider .
Assinatura:
export declare class PhoneAuthCredential extends AuthCredential
Estende: AuthCredential
Métodos
Método | Modificadores | Descrição |
---|---|---|
fromJSON(json) | static | Gera uma credencial de telefone com base em um objeto simples ou uma string JSON. |
toJSON() | Retorna uma representação serializável em JSON deste objeto. |
PhoneAuthCredential.fromJSON()
Gera uma credencial de telefone com base em um objeto simples ou uma string JSON.
Assinatura:
static fromJSON(json: object | string): PhoneAuthCredential | null;
Parâmetros
Parâmetro | Modelo | Descrição |
---|---|---|
json | objeto | corda |
Devoluções:
PhoneAuthCredential | nulo
PhoneAuthCredential.toJSON()
Retorna uma representação serializável em JSON deste objeto.
Assinatura:
toJSON(): object;
Devoluções:
objeto
uma representação serializável em JSON desse objeto.