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

205
Vistas
Chrome deletes the localstorage after closing the tab Vuejs

I am developing a web app with Vuejs, and i am using localstorage to store the jwt token , but after i close the tab I found that the token is lost and I need to login again . i tested the app on Opera GX and it is working just fine, i am having the issue only in Google Chrome.

This is how i set the token :

localStorage.setItem("token", token);

and this is how i load it :

let token = localStorage.getItem("token");
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I think the issue is from Chrome ,

you need to localstorage.getItem("X") befor you setItem("X","V")

and now the localstorage is persist , even after closing the browser .

this link helped me: Why isn't localStorage persisting in Chrome?

over 4 years ago · Santiago Trujillo 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