Files
social-media/backend/Modules/Identity/Configuration/JwtOptions.cs
2025-06-13 02:22:35 -04:00

15 lines
466 B
C#

namespace Hutopy.Modules.Identity.Configuration;
public record JwtOptions
{
public const string SectionName = "Authentication:Jwt";
public required TimeSpan Lifetime { get; init; }
public required string Issuer { get; init; }
public required string Audience { get; init; }
public required string Key { get; init; }
public TimeSpan RefreshTokenLifetime { get; init; }
public bool RefreshTokenRequireRotation { get; init; }
}