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;