JwtOptions.cs
1 namespace GUNRPG.Infrastructure.Identity; 2 3 /// <summary> 4 /// Configuration for JWT token issuance. 5 /// Bind from appsettings.json under the "Jwt" section. 6 /// </summary> 7 public sealed class JwtOptions 8 { 9 public const string SectionName = "Jwt"; 10 11 public string Issuer { get; set; } = "gunrpg"; 12 13 public string Audience { get; set; } = "gunrpg"; 14 15 /// <summary>Lifetime of JWT access tokens in minutes. Default: 15 minutes.</summary> 16 public int AccessTokenExpiryMinutes { get; set; } = 15; 17 18 /// <summary>Lifetime of refresh tokens in days. Default: 30 days.</summary> 19 public int RefreshTokenExpiryDays { get; set; } = 30; 20 }