From 259898cef0628fb117a352a7a12a2ce541bb71cc Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Sun, 23 Mar 2025 23:03:54 +0000 Subject: [PATCH] Update auth-utils.ts --- lib/auth-utils.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/auth-utils.ts b/lib/auth-utils.ts index 34861c9..10fbc46 100644 --- a/lib/auth-utils.ts +++ b/lib/auth-utils.ts @@ -27,7 +27,6 @@ export async function logoutUser(): Promise { if (token) { try { - // Try to logout on the server (if this fails, we still proceed with client logout) await fetch(`${process.env.NEXT_PUBLIC_API_URL}/auth/logout`, { method: 'POST', headers: { @@ -35,12 +34,10 @@ export async function logoutUser(): Promise { 'Content-Type': 'application/json' } }).catch(err => { - // Silently catch errors - we still want to proceed with local logout console.warn('Server logout failed:', err); }); } catch (error) { console.warn('Error during server logout:', error); - // Continue with client-side logout regardless of server response } }