import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';
import { REFRESH_TOKEN_EXAMPLE } from 'src/share/constans';

export class RefreshTokenDto {
  @ApiProperty({
    example: REFRESH_TOKEN_EXAMPLE,
    description: 'refresh token of user which has sent with access token',
  })
  @IsNotEmpty()
  @IsString()
  refresh_token: string;
}
