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

285
Vistas
Why is my firebase login showing on a different page in reactjs

I have a login page using firebase and I can log in and out successfully. What I want to do is to add a redirect. So, when the user logs in they are taken to another tab. Currently, it opens another tab with the correct path but instead of loading the correct content, it loads the login page. See images...

enter image description here

redirect enter image description here

This is the code I am using

const login = async () => {
  try {
const existingUser = await signInWithEmailAndPassword(auth, LoginEmail, LoginPassword, browserSessionPersistence,)
console.log(existingUser);

window.open('./Test')
}catch (err){
  if (err) {
    console.log(err);
  }
}
}

Am I missing something?

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