diff --git a/index.html b/index.html index 6750562..0094823 100644 --- a/index.html +++ b/index.html @@ -22,6 +22,13 @@ if (theme === "auto" ? isDark : theme === "dark") { document.documentElement.classList.add("dark") } + + const query = new URLSearchParams(window.location.search) + if (query.has("login") && query.has("user") && query.has("jwt")) { + localStorage.setItem("user", query.get("user")) + localStorage.setItem("jwt", JSON.stringify(query.get("jwt"))) + window.history.replaceState({}, document.title, window.location.pathname) + }