Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

282
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda