using FluentValidation; namespace Features.Auth.Commands.RefreshToken; /// /// Validates instances before they are processed. /// public class RefreshTokenValidator : AbstractValidator { /// /// Configures a validation rule requiring to be non-empty. /// public RefreshTokenValidator() { RuleFor(x => x.RefreshToken) .NotEmpty() .WithMessage("Refresh token is required"); } }