Files
project-fileshare/apps/backend/src/modules/auth/dto/refresh.dto.ts

10 lines
301 B
TypeScript
Raw Normal View History

2026-10-29 13:21:30 +06:00
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;
}