diff --git a/src/utils/CommonAxios/CommonAxios.ts b/src/utils/CommonAxios/CommonAxios.ts index fabe911..a612e05 100644 --- a/src/utils/CommonAxios/CommonAxios.ts +++ b/src/utils/CommonAxios/CommonAxios.ts @@ -1,7 +1,6 @@ import { JWT_COOKIE_NAME } from "@/constants/Auth"; import axios from "axios"; import Cookies from "js-cookie"; -import { redirect } from "next/navigation"; /** * 클라이언트에서 사용하는 공통 axios @@ -19,10 +18,10 @@ CommonAxios.interceptors.response.use( }, async function (error) { // 401: 인증 실패 → 로그인 페이지(또는 메인)로 리다이렉트 - if (error.response?.status === 401) { - redirect("/"); - return Promise.reject(error); - } + // if (error.response?.status === 401) { + // redirect("/"); + // return Promise.reject(error); + // } // 특정 에러 코드(4002, 3001)로 로그아웃이 필요한 상황