Skip to content

Commit 41322dd

Browse files
committed
Chore: useAuthStore 로그아웃 코드 수정
1 parent 0fd6ce1 commit 41322dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

store/useAuthStore.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ const useAuthStore = create<AuthStore>()(
6565
logout: async () => {
6666
try {
6767
await proxy.post("/api/auth/sign-out");
68-
set({ user: null });
69-
localStorage.removeItem("token"); // 토큰 삭제
68+
localStorage.removeItem("auth-storage");
7069
} catch (error) {
7170
console.error("로그아웃 중 에러가 발생했습니다.", error);
7271
}

0 commit comments

Comments
 (0)