[common/components] chore: 로그아웃 로직에서 clearClientCookies 주석 처리

This commit is contained in:
2026-04-09 10:39:52 +09:00
parent 6ea99e47d8
commit ee65714d01
@@ -82,13 +82,13 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
// 에러가 나도 계속 진행
} finally {
// 2. 클라이언트 쿠키 삭제 (백업)
clearClientCookies();
// clearClientCookies();
// 3. 로컬/세션 스토리지 정리
if (typeof window !== "undefined") {
localStorage.clear();
sessionStorage.clear();
}
// if (typeof window !== "undefined") {
// localStorage.clear();
// sessionStorage.clear();
// }
// 4. 로그인 페이지로 리다이렉트
window.location.href = "/auth/login";
@@ -96,6 +96,7 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
};
// 쿠키 삭제 헬퍼 함수
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const clearClientCookies = () => {
const actualHost = window.location.hostname;