From 1928f8729efc5b28baff030897db64c8dd6fd757 Mon Sep 17 00:00:00 2001 From: Sunghyun627 Date: Tue, 27 Aug 2024 16:07:44 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=A3=BC=EC=84=9D=EC=9D=84=20no=20oper?= =?UTF-8?q?ation=20=ED=95=A8=EC=88=98=EB=A1=9C=20=EB=8C=80=EC=B2=B4=20(SP-?= =?UTF-8?q?684)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/axios.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/utils/axios.ts b/src/utils/axios.ts index 1ea75282..82aa4fd8 100644 --- a/src/utils/axios.ts +++ b/src/utils/axios.ts @@ -20,20 +20,17 @@ export const createClient = (config?: AxiosRequestConfig) => { return response; }, async (error: AxiosError) => { - // console.log('axios response', error, error.response, error.response?.status); - if (error.response?.status === 400) { - // console.log('400', error.response); + () => {}; } // 토큰이 만료된 경우 else if (error.response?.status === 401) { - // console.log('401', error.response); try { const data = await logOut(); if (data) window.location.href = '/'; } catch (e) { - // console.log(e); + () => {}; } } // Login Provider에서 에러 핸들링하도록 reject