We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fd6ce1 commit 41322ddCopy full SHA for 41322dd
store/useAuthStore.tsx
@@ -65,8 +65,7 @@ const useAuthStore = create<AuthStore>()(
65
logout: async () => {
66
try {
67
await proxy.post("/api/auth/sign-out");
68
- set({ user: null });
69
- localStorage.removeItem("token"); // 토큰 삭제
+ localStorage.removeItem("auth-storage");
70
} catch (error) {
71
console.error("로그아웃 중 에러가 발생했습니다.", error);
72
}
0 commit comments