Skip to content

Commit

Permalink
Merge pull request #395 from boostcampwm-2024/feature-fe-#394
Browse files Browse the repository at this point in the history
로그아웃 시 공용 워크스페이스로 이동
  • Loading branch information
github-actions[bot] authored Dec 5, 2024
2 parents 7bb7654 + 85e385a commit 4822f1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/frontend/src/features/auth/model/authMutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const useLogout = () => {
onSuccess: async () => {
queryClient.setQueryData(["user"], null);
await queryClient.invalidateQueries({ queryKey: ["user"] });
window.location.replace("/");
},
});

Expand Down

0 comments on commit 4822f1a

Please sign in to comment.