fix: refs #6555 replace renewToken url
gitea/worker-time-control/pipeline/pr-test This commit looks good
Details
gitea/worker-time-control/pipeline/pr-test This commit looks good
Details
This commit is contained in:
parent
f540a51dd1
commit
30d9acf58b
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue