src/auth/dto/token-response.dto.ts
Properties |
|
| access_token |
Type : string
|
Decorators :
@ApiProperty({description: 'Bearer access token'})
|
|
Defined in src/auth/dto/token-response.dto.ts:5
|
| expires_in |
Type : number
|
Decorators :
@ApiProperty({description: 'Access token lifetime in seconds'})
|
|
Defined in src/auth/dto/token-response.dto.ts:14
|
| Optional refresh_token |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Optional refresh token'})
|
|
Defined in src/auth/dto/token-response.dto.ts:8
|
| state |
Type : string
|
Decorators :
@ApiProperty({description: 'Opaque state value echoed from the request'})
|
|
Defined in src/auth/dto/token-response.dto.ts:17
|
| token_type |
Type : unknown
|
Decorators :
@ApiProperty({description: 'Token type'})
|
|
Defined in src/auth/dto/token-response.dto.ts:11
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
export class TokenResponse {
@ApiProperty({ description: "Bearer access token" })
access_token!: string;
@ApiPropertyOptional({ description: "Optional refresh token" })
refresh_token?: string;
@ApiProperty({ description: "Token type" })
token_type!: "Bearer";
@ApiProperty({ description: "Access token lifetime in seconds" })
expires_in!: number;
@ApiProperty({ description: "Opaque state value echoed from the request" })
state!: string;
}