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

356
Visualizações
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
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