src/auth/dto/token-response.dto.ts

Index

Properties

Properties

access_token
Type : string
Decorators :
@ApiProperty({description: 'Bearer access token'})
expires_in
Type : number
Decorators :
@ApiProperty({description: 'Access token lifetime in seconds'})
Optional refresh_token
Type : string
Decorators :
@ApiPropertyOptional({description: 'Optional refresh token'})
state
Type : string
Decorators :
@ApiProperty({description: 'Opaque state value echoed from the request'})
token_type
Type : unknown
Decorators :
@ApiProperty({description: 'Token type'})
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;
}

results matching ""

    No results matching ""