Kavita/API/DTOs/Account/RotateAuthKeyRequestDto.cs
Joe Milazzo 8043650aa5
No more JWTs for Scripts + Polish (#4274)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
2025-12-13 05:55:02 -08:00

16 lines
350 B
C#

using System.ComponentModel.DataAnnotations;
namespace API.DTOs.Account;
#nullable enable
public sealed record RotateAuthKeyRequestDto
{
[Required]
[Range(8, 32)]
public int KeyLength { get; set; }
[Required(AllowEmptyStrings = false)]
public required string Name { get; set; }
public string? ExpiresUtc { get; set; }
}