Vizzuality/landgriffon

View on GitHub
api/src/modules/authentication/dto/user-account.validation.dto.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { IsUUID } from 'class-validator';

export class UserAccountValidationDTO {
  /**
   * Unique activation token generated during user signup flow.
   */
  @IsUUID(4)
  validationToken!: string;

  /**
   * Subject of the activation flow: in this case, the user's UUID.
   */
  @IsUUID(4)
  sub!: string;
}