From ced01beaeac869e55f56e52ab2cddb0b0cebbb8b Mon Sep 17 00:00:00 2001 From: JAVIER SEGARRA MARTINEZ Date: Mon, 12 Feb 2024 11:36:26 +0000 Subject: [PATCH] Hotfix renewtoken not working as expected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Había un error en el tipo de datos a la hora de hacer la comprobación. --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 2919bc6..d87627f 100644 --- a/js/main.js +++ b/js/main.js @@ -45,7 +45,7 @@ function getTokenConfig() { } function checkValidity() { - const created = localStorage.getItem('created'); + const created = +localStorage.getItem('created'); const ttl = localStorage.getItem('ttl'); if (isCheckingToken || !created) return;