Response.cs 456 B

12345678910111213
  1. using System.Text.Json.Serialization;
  2. namespace Application.Features.Api.OAuth.IssueToken;
  3. /// <summary>
  4. /// RFC 6749 §5.1 OAuth2 Access Token Response.
  5. /// </summary>
  6. public sealed record Response(
  7. [property: JsonPropertyName("access_token")] string AccessToken,
  8. [property: JsonPropertyName("token_type")] string TokenType,
  9. [property: JsonPropertyName("expires_in")] int ExpiresIn,
  10. [property: JsonPropertyName("scope")] string Scope
  11. );