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

365
Views
Firebase: How to convert an anonymous account to a permanent google account

I've been trying to convert an anonymous account to a permanent google account following the instructions on the firebase docs (https://firebase.google.com/docs/auth/web/anonymous-auth#google-sign-in)

It shows the following snippet of code:

import { GoogleAuthProvider } from "firebase/auth";

const credential = GoogleAuthProvider.credential(googleUser.getAuthResponse().id_token);

However, the snippet of code provided displays a variable called "googleUser" which has the method googleUser.getAuthResponse().id_token

I do not know where this variable comes from and how to get it. I've looked around the docs and internet for hours and had no luck.

I'm currently using linkWithPopup to do the job, however, if the google user that I'm trying to link the anonymous account to already exists on the app it just fails.

about 4 years ago · Juan Pablo Isaza
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!