import { Transform } from 'class-transformer';
import { IsString, MinLength } from 'class-validator';

export class RefreshTokenDto {
  @Transform(({ value }) => (typeof value === 'string' ? value.trim() : value))
  @IsString()
  @MinLength(16)
  refreshToken!: string;
}
