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

184
Vistas
js-ccokie sets on local but not on server

when I login in my project locally all the cookies set on localhost but when I do it on server it doesn't set the cookies and I can see the token is received with redux-persist in localStorage.

here is the code of how I set it:

cookie.set("JWT", data.tokenAuth.token, {
        expires: epochToday(data.tokenAuth.payload.exp),
        secure: true,
        path: "",
      });
cookie.set("JWTRefreshToken", data.tokenAuth.refreshToken, {
        expires: epochToday(data.tokenAuth.refreshExpiresIn),
        secure: true,
        path: "",
      });
about 4 years ago · Juan Pablo Isaza
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