Skip to content

Commit

Permalink
fix: 임시 로그아웃
Browse files Browse the repository at this point in the history
500 이슈로 임시 로그아웃 구현
  • Loading branch information
Emithen committed Feb 2, 2025
1 parent d0edffa commit e42d865
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ export const AuthProvider: React.FC<AuthProviderProps> = ({ children }) => {
};

const logoutUser = async () => {
await logout();
removeToken();
setUser({ isLoggedIn: false });
console.log("해치웠나?");
window.location.href = "/login";
await logout();
};

return (
Expand Down

0 comments on commit e42d865

Please sign in to comment.