Skip to content
Snippets Groups Projects
Commit a25431bc authored by NGPixel's avatar NGPixel
Browse files

fix: token revocation incorrect TTL

parent a690e559
No related branches found
No related tags found
No related merge requests found
......@@ -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))
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment