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

180
Views
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
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!