using System;
namespace Wino.Core.Domain.Models.Authentication
{
public class TokenInformationBase
{
public string AccessToken { get; set; }
public string RefreshToken { get; set; }
///
/// UTC date for token expiration.
///
public DateTime ExpiresAt { get; set; }
///
/// Gets the value indicating whether the token is expired or not.
///
public bool IsExpired => DateTime.UtcNow >= ExpiresAt;
}
}