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

141
Vistas
getting logged out after every page refresh when using auth.onAuthStateChanged firebase 9

For some reason I am getting logged out of my app on page refresh , I am using the the following logic and I had to disable the unsubscribe thinking it is causing the issue but problem still continues. and I cannot log in unless I use log out function and the sign in back, but if I refresh back to the same loop.

 useEffect(() => {
    //  unsubscribe logic !!
    //const unsubscribe =
    auth.onAuthStateChanged((user) => {
      setCurrentUser(user);

    });
    //return unsubscribe;
  }, []);

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