From 75b90a751fbba979b21b24716165aa1f09a9ed14 Mon Sep 17 00:00:00 2001 From: JaehongDev Date: Mon, 8 Jul 2024 23:51:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=BF=A0?= =?UTF-8?q?=ED=82=A4=20=EC=82=AD=EC=A0=9C=EC=8B=9C=20=EB=AF=B8=EC=9D=B8?= =?UTF-8?q?=EC=A6=9D=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/Interceptors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/api/Interceptors.ts b/frontend/src/api/Interceptors.ts index 308535d..779d182 100644 --- a/frontend/src/api/Interceptors.ts +++ b/frontend/src/api/Interceptors.ts @@ -46,7 +46,8 @@ export const handleTokenError = async(error: AxiosError) => { } if ( - status === 400 && (data.code >= 10000 && data.code <= 10006) + (status === 401 || status === 400) && + (data.code >= 10000 && data.code <= 10007) ) { localStorage.removeItem(TOKEN.ACCESS); window.location.href = PATH.AUTH;