From 6234bdc249a49e4695cd21a8afbb92e79d3ba1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Wed, 6 Dec 2023 02:17:33 +0900 Subject: [PATCH] fix: render login button when token expires --- src/home/getters/get-github-access-token.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/home/getters/get-github-access-token.ts b/src/home/getters/get-github-access-token.ts index be8ce395..c0bdec51 100644 --- a/src/home/getters/get-github-access-token.ts +++ b/src/home/getters/get-github-access-token.ts @@ -7,6 +7,7 @@ export function getGitHubAccessToken(): string | null { if (expiresAt) { if (expiresAt < Date.now() / 1000) { localStorage.removeItem("sb-wfzpewmlyiozupulbuur-auth-token"); + return null; } }