add 8 hours to the token issuance date
问题 I have this function : export const isTokenValid = () => { const isTokenExist = localStorage.getItem("TOKEN_AUTH"); if (!isTokenExist) return false; const token = isTokenExist.split(" ")[1]; const jwt = JSON.parse(atob(token.split(".")[1])); const iat = (jwt && jwt.iat * 1000) || null; console.log(iat); console.log(Date.now()); const isExp = Date.now() > iat; if (isExp) { // localStorage.clear(); return false; } return true; }; In console.log() : 1516239022000 1585764070793 I have to check is