develop #3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user