Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

280
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!