File

src/modules/auth/dtos/token-payload.dto.ts

Index

Properties

Constructor

constructor(data: literal type)
Parameters :
Name Type Optional
data literal type No

Properties

Readonly accessToken
Type : string
Decorators :
@ApiProperty()
Readonly expiresIn
Type : number
Decorators :
@ApiProperty()
import { ApiProperty } from '@nestjs/swagger';

export class TokenPayloadDto {
  @ApiProperty()
  readonly expiresIn: number;

  @ApiProperty()
  readonly accessToken: string;

  constructor(data: { expiresIn: number; accessToken: string }) {
    this.expiresIn = data.expiresIn;
    this.accessToken = data.accessToken;
  }
}

result-matching ""

    No results matching ""