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

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