import { IsOptional, IsString } from 'class-validator'; import { ApiPropertyOptional } from '@nestjs/swagger'; export class RefreshTokenDto { @ApiPropertyOptional({ description: 'Optional refresh token in body if not provided via cookie' }) @IsOptional() @IsString() refreshToken?: string; }