Check if token expired using this JWT library January 4, 2023 by Tarik This is the answer: if (Date.now() >= exp * 1000) { return false; }