From d30fd28b1b63fac6fa454f077b98a020eae0911b Mon Sep 17 00:00:00 2001 From: Gcat101 Date: Sun, 28 Jan 2024 17:25:57 +0300 Subject: [PATCH] GATEKEEPER DUMB --- src/lib/IconLogin.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/IconLogin.svelte b/src/lib/IconLogin.svelte index 97f7306..d9904a4 100644 --- a/src/lib/IconLogin.svelte +++ b/src/lib/IconLogin.svelte @@ -30,7 +30,7 @@ return null; } - let key : string = (await r.json()).access_token; + let key : string = (await r.json())[PUBLIC_CLIENT_SECRET ? 'access_token' : 'token']; localStorage.setItem('gh_key', key); let newQ = new URLSearchParams($page.url.searchParams.toString());