setTimeout(async () => { await fetch("/logout", {method: "POST"}); window.location.href = "/"; }, 3000);