add more authentication code

This commit is contained in:
sam 2024-05-19 23:51:53 +02:00
parent aca83fa1ef
commit 04b7cf624d
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
7 changed files with 151 additions and 55 deletions

View file

@ -30,7 +30,7 @@ public partial class RequestSigningService
if (!resp.IsSuccessStatusCode)
{
var error = await resp.Content.ReadAsStringAsync();
throw new FoxchatError.OutgoingFederationError($"Request to {domain}{requestPath} returned an error", DeserializeObject<ApiError>(error));
throw new FoxchatError.OutgoingFederationError($"Request to {domain}{requestPath} returned an error", DeserializeObject<Models.ApiError>(error));
}
var bodyString = await resp.Content.ReadAsStringAsync();