From 1404d6343ec82bb77843b5ea9b4b0d1b3c230321 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 12 Sep 2020 14:33:45 -0400 Subject: [PATCH] fix: API key incorrectly forces token revalidation --- server/core/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/auth.js b/server/core/auth.js index 82d17867..8686fbee 100644 --- a/server/core/auth.js +++ b/server/core/auth.js @@ -122,7 +122,7 @@ module.exports = { } // Check if user / group is in revocation list - if (user && !mustRevalidate) { + if (user && !user.api && !mustRevalidate) { const uRevalidate = WIKI.auth.revocationList.get(`u${_.toString(user.id)}`) if (uRevalidate && user.iat < uRevalidate) { mustRevalidate = true