From 49a0225b7532ef6e4fa372c80193988057cc16ba Mon Sep 17 00:00:00 2001 From: Ratstail91 Date: Sun, 24 Dec 2023 02:50:34 +1100 Subject: [PATCH] Am I allowed to swear in commit messages? --- authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentication.md b/authentication.md index d25eed8..01ee27e 100644 --- a/authentication.md +++ b/authentication.md @@ -154,7 +154,7 @@ const tokenFetch = async (url, options) => { let bearer = accessToken; //if expired (10 minutes, normally) - const expired = new Date(decode(accessToken).exp * 600) < Date.now(); + const expired = new Date(decode(accessToken).exp) < Date.now() / 1000; if (expired) { ...