Kavita/Kavita.Models/DTOs/Account/RotateAuthKeyRequestDto.cs
Fesaa c62b20f54b
BE Tech Debt (#4497)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
2026-03-07 10:04:08 -08:00

16 lines
360 B
C#

using System.ComponentModel.DataAnnotations;
namespace Kavita.Models.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; }
}