Skip to content

Commit

Permalink
fix: render login button when token expires
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Dec 5, 2023
1 parent 28ebdee commit 6234bdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/home/getters/get-github-access-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export function getGitHubAccessToken(): string | null {
if (expiresAt) {
if (expiresAt < Date.now() / 1000) {
localStorage.removeItem("sb-wfzpewmlyiozupulbuur-auth-token");
return null;
}
}

Expand Down

0 comments on commit 6234bdc

Please sign in to comment.