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

175
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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