260630_02_ENH: 로그아웃 시 alert 안뜨게 수정
This commit is contained in:
@@ -27,7 +27,7 @@ export const useLogoutMutation = () => {
|
||||
const userId = auth.user?.userId ?? "";
|
||||
try {
|
||||
if (userId){
|
||||
await nextApi.post(`/logout/${userId}`, null, { autoLogoutOnAuthError: false });
|
||||
await nextApi.post(`/logout/${userId}`, null, { autoLogoutOnAuthError: false, suppressAlert: true });
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
@@ -38,4 +38,4 @@ export const useLogoutMutation = () => {
|
||||
qc.clear(); // 다음 사용자/세션에 서버상태 남지 않게
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user