From c23b12bb02a1c7af5cd18f1d5b58aa99b7b0c03c Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:03:47 +0000 Subject: [PATCH] chore: remove auth token on sign out --- static/scripts/authentication.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/scripts/authentication.ts b/static/scripts/authentication.ts index 821bcbe..be69976 100644 --- a/static/scripts/authentication.ts +++ b/static/scripts/authentication.ts @@ -71,6 +71,8 @@ export class AuthService { public async signOut(): Promise<void> { await this.supabase.auth.signOut(); + localStorage.removeItem(`sb-${SUPABASE_STORAGE_KEY}-auth-token`); + window.location.reload(); } public async renderGithubLoginButton(user?: GitHubUser | null): Promise<void> {