src/modules/auth/dtos/token-payload.dto.ts
Properties |
|
constructor(data: literal type)
|
||||||
|
Defined in src/modules/auth/dtos/token-payload.dto.ts:8
|
||||||
|
Parameters :
|
| Readonly accessToken |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/modules/auth/dtos/token-payload.dto.ts:8
|
| Readonly expiresIn |
Type : number
|
Decorators :
@ApiProperty()
|
|
Defined in src/modules/auth/dtos/token-payload.dto.ts:5
|
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;
}
}