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

168
Views
Detect if page is already open when authenticating via magic email link

Firebase/auth docs explain well how to login via magic email link. Issue that I have is that magic email link is opened in a new tab/window which means that after a successful authentication I have two tabs open. What is the best practice to close new/old window/tab if there is already one open?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

One way is to use localStorage API to check for this condition. See this question on how to use it: JavaScript: sharing data between tabs

From UX standpoint: while closing a duplicate tab seems like a good idea on a first glance, as a user I'd not be too happy about losing a tab with it's back history. I've seen at least one website that applied a whole-page overlay saying "this is open already in another tab" to disable interaction.

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