chore
This commit is contained in:
20
Atomx.Common/Models/AuthResponse.cs
Normal file
20
Atomx.Common/Models/AuthResponse.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -37,5 +37,10 @@ namespace Atomx.Common.Models
|
||||
/// 刷新令牌过期时间
|
||||
/// </summary>
|
||||
public int RefreshTokenExpirationMinutes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每个用户刷新令牌最大数量
|
||||
/// </summary>
|
||||
public int MaxRefreshTokensPerUser { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user