From a25431bcf829ff195554d18eac4d7a2a23c75584 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Thu, 25 Jun 2020 00:02:39 -0400 Subject: [PATCH] fix: token revocation incorrect TTL --- server/core/auth.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/core/auth.js b/server/core/auth.js index ca2dd513..c64d4918 100644 --- a/server/core/auth.js +++ b/server/core/auth.js @@ -438,7 +438,6 @@ module.exports = { * Add user / group ID to JWT revokation list, forcing all requests to be validated against the latest permissions */ revokeUserTokens ({ id, kind = 'u' }) { - console.info(Math.ceil(ms(WIKI.config.auth.tokenRenewal) / 1000)) - WIKI.auth.revokationList.set(`${kind}${_.toString(id)}`, true, Math.ceil(ms(WIKI.config.auth.tokenRenewal) / 1000)) + WIKI.auth.revokationList.set(`${kind}${_.toString(id)}`, true, Math.ceil(ms(WIKI.config.auth.tokenExpiration) / 1000)) } }