using FluentValidation; namespace SIGCM2.Application.Auth.Refresh; public sealed class RefreshCommandValidator : AbstractValidator { public RefreshCommandValidator() { RuleFor(x => x.AccessToken) .NotEmpty().WithMessage("accessToken is required"); RuleFor(x => x.RefreshToken) .NotEmpty().WithMessage("refreshToken is required") .MinimumLength(20).WithMessage("refreshToken must be at least 20 characters"); } }