Files
the-biergarten-app/web/backend/Features/Features.Users/Commands/Authentication/RefreshToken/RefreshTokenValidator.cs

13 lines
403 B
C#

using FluentValidation;
namespace Features.Auth.Commands.Authentication.RefreshToken;
/// <summary>Validates that <see cref="RefreshTokenCommand.RefreshToken" /> is present.</summary>
public class RefreshTokenValidator : AbstractValidator<RefreshTokenCommand>
{
public RefreshTokenValidator()
{
RuleFor(x => x.RefreshToken).NotEmpty().WithMessage("Refresh token is required");
}
}