the cookie name is being a bitch?

This commit is contained in:
Madeline
2022-06-27 16:09:38 +10:00
parent 3ac4953a0b
commit 6e1eb28078
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -124,9 +124,9 @@
document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)')?.pop() || ''
);
let token = getCookieValue("oauth-discord");
let token = getCookieValue("token");
if (token.trim().length) {
document.cookie = "oauth-discord="; // don't care
document.cookie = "token="; // don't care
window.localStorage.setItem("token", `"${token}"`);
window.location.href = "/app";
}