galaeth-draft/Galaeth.Services/Dtos/AccessTokensDto.cs

38 lines
922 B
C#
Raw Normal View History

2024-11-17 10:31:01 +01:00
namespace Galaeth.Services.Dtos;
/// <summary>
/// Dto containing an access and refresh token for authentication.
/// </summary>
public class AccessTokensDto
{
/// <summary>
/// Access token.
/// </summary>
public string AccessToken { get; set; }
/// <summary>
/// Refresh token.
/// </summary>
public string RefreshToken { get; set; }
/// <summary>
/// When the access token expires.
/// </summary>
public DateTime AccessTokenExpires { get; set; }
/// <summary>
/// When the refresh token expires.
/// </summary>
public DateTime RefreshTokenExpires { get; set; }
/// <summary>
/// When the access token expires (UTC ticks).
/// </summary>
public long AccessTokenExpiresTicks { get; set; }
/// <summary>
/// When the refresh token expires (UTC ticks).
/// </summary>
public long RefreshTokenExpiresTicks { get; set; }
}