Skip to content

Commit

Permalink
chore: remove auth token on sign out
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Nov 15, 2024
1 parent 3b7a5ed commit c23b12b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/scripts/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit c23b12b

Please sign in to comment.