38 lines
922 B
C#
38 lines
922 B
C#
|
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; }
|
||
|
}
|