From 469bcd3176adadf0b8f97fa30abf495a514fd6fc Mon Sep 17 00:00:00 2001 From: KangSan Lee Date: Tue, 19 Sep 2023 22:01:51 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=ED=94=84=EB=A0=88=EC=8B=9C=20?= =?UTF-8?q?=ED=86=A0=ED=81=B0=20=ED=83=80=EC=9D=B4=EB=A8=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#550)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: checkLoginToken에 clearTimeout 추가 --- frontend/src/hooks/useLogin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/hooks/useLogin.ts b/frontend/src/hooks/useLogin.ts index 3e0d33532..35b3611cc 100644 --- a/frontend/src/hooks/useLogin.ts +++ b/frontend/src/hooks/useLogin.ts @@ -51,7 +51,8 @@ export const useLogin = () => { const checkLoginToken = async () => { const token = getAccessToken(); - if (timer.current) return; + if (timer.current) clearTimeout(timer.current); + if (!token || !isLogin) return; const exp = getExpiration(token);