10 lines
301 B
TypeScript
10 lines
301 B
TypeScript
|
|
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;
|
||
|
|
}
|