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: "",
});