Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!