From 37064702fd49b6b6859cc61d53757e648f35f442 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 24 Sep 2026 19:59:20 +0200 Subject: [PATCH] auth fix --- k-notes-frontend/src/lib/api.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/k-notes-frontend/src/lib/api.ts b/k-notes-frontend/src/lib/api.ts index fb5ae6b..0af8cc4 100644 --- a/k-notes-frontend/src/lib/api.ts +++ b/k-notes-frontend/src/lib/api.ts @@ -158,9 +158,7 @@ async function fetchWithAuth(endpoint: string, options: RequestInit = {}) { } } - // Refresh failed — clear tokens and redirect clearAllTokens(); - window.location.href = "/login"; throw new ApiError(401, "Session expired"); }