auth fix
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user