SyntaxFix
Write A Post
Hire A Developer
Questions
// Pass in function expiration date to check token function checkToken(exp) { if (Date.now() <= exp * 1000) { console.log(true, 'token is not expired') } else { console.log(false, 'token is expired') } }