mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
13 lines
404 B
C#
13 lines
404 B
C#
using FluentValidation;
|
|
|
|
namespace Features.Users.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");
|
|
}
|
|
}
|