Revert "[cs] feat: 로그아웃 시 쿠키 제거 방식 변경"

This reverts commit 6422b3013a.
This commit is contained in:
2026-04-09 15:30:54 +09:00
parent 6422b3013a
commit 5cbe57aa8d
3 changed files with 14 additions and 20 deletions
@@ -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,7 +96,6 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
};
// 쿠키 삭제 헬퍼 함수
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const clearClientCookies = () => {
const actualHost = window.location.hostname;