diff --git a/src/query/auth.ts b/src/query/auth.ts index a0375a6..f8fb8e8 100644 --- a/src/query/auth.ts +++ b/src/query/auth.ts @@ -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(); // 다음 사용자/세션에 서버상태 남지 않게 }, }); -} \ No newline at end of file +}