This commit is contained in:
2025-12-04 00:40:12 +08:00
parent 4f3eecabc4
commit c6a95fa28d
20 changed files with 874 additions and 9 deletions

View File

@@ -0,0 +1,20 @@
namespace Atomx.Common.Models
{
public class AuthResponse
{
/// <summary>
/// 身份令牌
/// </summary>
public string Token { get; set; } = string.Empty;
/// <summary>
/// 刷新身份的令牌
/// </summary>
public string RefreshToken { get; set; } = string.Empty;
/// <summary>
/// 身份令牌过期时间
/// </summary>
public DateTime TokenExpiry { get; set; }
}
}

View File

@@ -37,5 +37,10 @@ namespace Atomx.Common.Models
/// 刷新令牌过期时间
/// </summary>
public int RefreshTokenExpirationMinutes { get; set; }
/// <summary>
/// 每个用户刷新令牌最大数量
/// </summary>
public int MaxRefreshTokensPerUser { get; set; }
}
}