From 30d9acf58b1d078f17389f076db354449749c47d Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 19 Jun 2024 09:52:07 +0200 Subject: [PATCH] fix: refs #6555 replace renewToken url --- js/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 692e381..8c255ce 100644 --- a/js/main.js +++ b/js/main.js @@ -17,11 +17,14 @@ function printError(msg) { confirmBtn.style.hidden = false; confirmBtn.classList.add("fade-in"); - setTimeout(() => (confirmBtn.classList.add("fade-out"), confirmReset()), 2300); + setTimeout(() => { + confirmBtn.classList.add("fade-out"); + setTimeout(confirmReset, 200); + }, 2300); } async function renewToken() { - const data = await call("AccessTokens/renewToken", {}); + const data = await call("vnUsers/renewToken", { method: "POST" }); localStorage.setItem("ttl", data.ttl); localStorage.setItem("created", Date.now());