Skip to content

Commit 4822f1a

Browse files
Merge pull request #395 from boostcampwm-2024/feature-fe-#394
로그아웃 시 공용 워크스페이스로 이동
2 parents 7bb7654 + 85e385a commit 4822f1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/frontend/src/features/auth/model/authMutations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const useLogout = () => {
1010
onSuccess: async () => {
1111
queryClient.setQueryData(["user"], null);
1212
await queryClient.invalidateQueries({ queryKey: ["user"] });
13+
window.location.replace("/");
1314
},
1415
});
1516

0 commit comments

Comments
 (0)