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"); }