13 lines
487 B
TypeScript
13 lines
487 B
TypeScript
import { IsNotEmpty, IsString } from 'class-validator';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class RefreshTokenDto {
|
|
@ApiProperty({
|
|
description: 'توکن تازهسازی (Refresh Token)',
|
|
example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
})
|
|
@IsNotEmpty({ message: 'ارسال توکن تازهسازی الزامی است' })
|
|
@IsString({ message: 'توکن تازهسازی باید رشته متنی باشد' })
|
|
refreshToken: string;
|
|
}
|