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 } }