Redirects stale authenticated sessions to login instead of the not-found page

This commit is contained in:
BinaryAlley committed 2026-08-09 00:45:31 -07:00
1 parent 300ed73f8a
commit 6a006ef945
4 files changed
+34 -9

No files matched your search

@@ -150,7 +150,7 @@ public class ApiHttpClient : IApiHttpClient
problemDetails = JsonSerializer.Deserialize<ProblemDetailsModel>(content, _jsonOptions);
}
catch { /* if we can't deserialize to ProblemDetails, we'll just use the status code */ }
throw new ApiException(problemDetails, response.StatusCode);
throw new ApiException(problemDetails, response.StatusCode, request.RequestUri?.AbsolutePath);
}
}
@@ -223,7 +223,7 @@ public class ApiHttpClient : IApiHttpClient
problemDetails = JsonSerializer.Deserialize<ProblemDetailsModel>(content, _jsonOptions);
}
catch { /* if we can't deserialize to ProblemDetails, we'll just use the status code */ }
throw new ApiException(problemDetails, response.StatusCode);
throw new ApiException(problemDetails, response.StatusCode, request.RequestUri?.AbsolutePath);
}
}