namespace decePubClient.Models;
public class AppConfiguration
{
public string Version { get; set; }
public string ApiBaseAddress { get; set; }
/// PrivaPub's first-party application, the only one allowed to exchange the root JWT for persona tokens.
public string ClientId { get; set; } = "decepub";
/// PrivaPub's own host, which the instance API describes like any other server.
public string ApiHost => Uri.TryCreate(ApiBaseAddress, UriKind.Absolute, out var uri) ? uri.Host.ToLowerInvariant() : default;
}