260630_02_ENH: 로그아웃 시 alert 안뜨게 수정

This commit is contained in:
2026-06-30 18:04:35 +09:00
parent 0f407e3656
commit 9f214c4a03

View File

@@ -27,7 +27,7 @@ export const useLogoutMutation = () => {
const userId = auth.user?.userId ?? ""; const userId = auth.user?.userId ?? "";
try { try {
if (userId){ if (userId){
await nextApi.post(`/logout/${userId}`, null, { autoLogoutOnAuthError: false }); await nextApi.post(`/logout/${userId}`, null, { autoLogoutOnAuthError: false, suppressAlert: true });
} }
} catch (e) { } catch (e) {
console.error(e); console.error(e);
@@ -38,4 +38,4 @@ export const useLogoutMutation = () => {
qc.clear(); // 다음 사용자/세션에 서버상태 남지 않게 qc.clear(); // 다음 사용자/세션에 서버상태 남지 않게
}, },
}); });
} }