Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { ApiProperty } from '@nestjs/swagger'; import { Expose } from 'class-transformer'; import { IsNotEmpty, IsString } from 'class-validator'; import { HttpHeader } from '../../shared/auth.const'; import { AccessTokenPayloadDto } from '../../shared/auth.dto'; export class ValidateJwtTokenRequestHeaderDto { @Expose() @IsNotEmpty() @IsString() [HttpHeader.AccessToken]: string; } export class ValidateJwtTokenResponseDto { @ApiProperty({ type: AccessTokenPayloadDto, }) payload: AccessTokenPayloadDto; } |