mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-11-02 12:25:07 -05:00
23 lines
612 B
C#
23 lines
612 B
C#
namespace Cleanuparr.Infrastructure.Features.Auth;
|
|
|
|
/// <summary>
|
|
/// Tokens obtained from exchanging an OIDC authorization code.
|
|
/// </summary>
|
|
public sealed record OidcTokenExchangeResult
|
|
{
|
|
/// <summary>
|
|
/// JWT access token for API requests.
|
|
/// </summary>
|
|
public required string AccessToken { get; init; }
|
|
|
|
/// <summary>
|
|
/// Refresh token used to obtain new access tokens.
|
|
/// </summary>
|
|
public required string RefreshToken { get; init; }
|
|
|
|
/// <summary>
|
|
/// Seconds until the access token expires.
|
|
/// </summary>
|
|
public required int ExpiresIn { get; init; }
|
|
}
|