diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-06-27 16:04:17 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-06-27 16:04:17 +1000 |
commit | 3ac4953a0b13b48fbd6106abfc7f28986d150b89 (patch) | |
tree | 3ac5eab05ed3c7e22f90dbc7aacc085e9d6c7893 /slowcord | |
parent | who tf calls the start script run? npm run run, bruh (diff) | |
download | server-3ac4953a0b13b48fbd6106abfc7f28986d150b89.tar.xz |
Token in localStorage must be JSON
Diffstat (limited to 'slowcord')
-rw-r--r-- | slowcord/public/login.html | 4 |
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"; } }) |