15 lines
348 B
C#
15 lines
348 B
C#
using BeReadyBackend.DTO.Auth;
|
|
using FastEndpoints;
|
|
using FluentValidation;
|
|
|
|
namespace BeReadyBackend.Validators.Auth;
|
|
|
|
public class RefreshTokenDtoValidator : Validator<RefreshTokenDto>
|
|
{
|
|
public RefreshTokenDtoValidator()
|
|
{
|
|
RuleFor(x => x.Token)
|
|
.NotEmpty()
|
|
.WithMessage("Token cannot be empty");
|
|
}
|
|
} |