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

150
Vistas
How does google chrome save my authenticated user even after I refresh the page?

So I am making a firebase web app and I am authenticating the user at the moment. When the user signs in, it takes them to a brand new page and refreshes the page. I was told that when you refresh the page all the memory is cleared.

What I don't understand is somehow chrome saves the user even after I refresh the page. So the current user stays logged in even though the memory should have been cleared.

How does chrome do this? Shouldn't I have to log my user into firebase again after the user refreshes the page? It just doesn't make sense how the user is still logged in even though the page is refreshed and the memory was cleared. I would just like more information on what exactly is going on.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

When the user signs in, the Firebase Authentication SDK stores the (encoded) user credentials in the local storage of the user's browser.

When you (re)load the page, the SDK restores the user's authentication state from that information in local storage.

This does require it to call to the server though (a.o. to check if the account was disabled in the meantime), so to pick up when the credentials have been restored use an auth state listener.

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