Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

281
Visualizações
Firebase auth v9 - AuthCredential.fromJSON() disappeared

In the system I work on, there is a auth-web-app which is used to authenticate a user, serializes credential, and then transfer it by message to another app. The other app receives the credential, parse it, and pass it to its own firebase-auth package to authenticate user inside its process.

In Firebase v8, AuthCredential had a static function fromJSON() which was used by the receiver app of the credential to parse it.

But in Firebase v9, this function has disappeared. There no more fromJSON() function in in AuthCredential. There's only a toJSON() function.

How can I parse the json representation into a AuthCredential instance with v9?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can now use OAuthCredential class that extends AuthCredential in V9.

import { OAuthCredential } from "firebase/auth";

const cred = OAuthCredential.fromJSON('{...}')
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda