This commit is contained in:
2026-09-24 19:59:20 +02:00
parent a9194fa66c
commit 37064702fd

View File

@@ -158,9 +158,7 @@ async function fetchWithAuth(endpoint: string, options: RequestInit = {}) {
} }
} }
// Refresh failed — clear tokens and redirect
clearAllTokens(); clearAllTokens();
window.location.href = "/login";
throw new ApiError(401, "Session expired"); throw new ApiError(401, "Session expired");
} }