summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-06-27 16:04:17 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-06-27 16:04:17 +1000
commit3ac4953a0b13b48fbd6106abfc7f28986d150b89 (patch)
tree3ac5eab05ed3c7e22f90dbc7aacc085e9d6c7893
parentwho tf calls the start script run? npm run run, bruh (diff)
downloadserver-3ac4953a0b13b48fbd6106abfc7f28986d150b89.tar.xz
Token in localStorage must be JSON
-rw-r--r--slowcord/public/login.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/slowcord/public/login.html b/slowcord/public/login.html

index 6b1f879c..def2c786 100644 --- a/slowcord/public/login.html +++ b/slowcord/public/login.html
@@ -127,7 +127,7 @@ let token = getCookieValue("oauth-discord"); if (token.trim().length) { document.cookie = "oauth-discord="; // don't care - window.localStorage.setItem("token", token); + window.localStorage.setItem("token", `"${token}"`); window.location.href = "/app"; } @@ -152,7 +152,7 @@ const json = await response.json(); if (json.token) { - window.localStorage.setItem("token", json.token); + window.localStorage.setItem("token", `"${json.token}"`); window.location.href = "/app"; } })