You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
637 B
26 lines
637 B
namespace Wood.Util
|
|
{
|
|
public class JwtConfig
|
|
{
|
|
/// <summary>
|
|
/// 密钥,string 类型,必须是复杂密钥,长度大于16
|
|
/// </summary>
|
|
public string? SecretKey { get; set; }
|
|
/// <summary>
|
|
/// 发行方,string 类型
|
|
/// </summary>
|
|
public string? Issuer { get; set; }
|
|
/// <summary>
|
|
/// 订阅方,string 类型
|
|
/// </summary>
|
|
public string? Audience { get; set; }
|
|
/// <summary>
|
|
/// 刷新token有效期限 天
|
|
/// </summary>
|
|
public int RefreshTokenExpire { get; set; } = 30;
|
|
/// <summary>
|
|
/// token有效期限 分钟
|
|
/// </summary>
|
|
public int TokenExpire { get; set; } = 60;
|
|
}
|
|
}
|
|
|