feat(app): implement RefreshCommand handler with token rotation and chain revocation

This commit is contained in:
2026-04-14 13:28:06 -03:00
parent 25639398c2
commit f5e67b78a5
4 changed files with 120 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using FluentValidation;
namespace SIGCM2.Application.Auth.Refresh;
public sealed class RefreshCommandValidator : AbstractValidator<RefreshCommand>
{
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");
}
}