using Newtonsoft.Json; using System.Text.Json.Serialization; namespace IRaCIS.Core.Application.Service.OAuth; public class LogtoTokenResponse { /// /// The access token issued by the Logto authorization server. /// [JsonPropertyName("access_token")] [JsonProperty("access_token")] public string AccessToken { get; set; } = null!; /// /// The type of the token issued by the Logto authorization server. /// [JsonPropertyName("token_type")] [JsonProperty("token_type")] public string TokenType { get; set; } = null!; /// /// The lifetime in seconds of the access token. /// [JsonPropertyName("expires_in")] [JsonProperty("expires_in")] public int ExpiresIn { get; set; } /// /// The refresh token, which can be used to obtain new access tokens using the same authorization grant. /// [JsonPropertyName("refresh_token")] [JsonProperty("refresh_token")] public string? RefreshToken { get; set; } = null!; /// /// The ID token, which can be used to verify the identity of the user. /// [JsonPropertyName("id_token")] [JsonProperty("id_token")] public string? IdToken { get; set; } = null; }