mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Redirects stale authenticated sessions to login instead of the not-found page
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user