Skip to content
Search
Search the documentation
OAuthTokenResponse
GitHub GitHub

OAuthTokenResponse

Interface: OAuthTokenResponse

Defined in: v1/types/oauth.ts:174

Response from the OAuth token endpoint.

  • POST /v1/oauth2/token

Properties

access_token

access_token: string

Defined in: v1/types/oauth.ts:178

The access token to use as a Bearer token for API requests. Valid for 7 days.


expires_in

expires_in: number

Defined in: v1/types/oauth.ts:183

Seconds until access_token expires.


project?

optional project?: OAuthProject

Defined in: v1/types/oauth.ts:196

The project the user granted. Not present on refresh responses.


refresh_token

refresh_token: string

Defined in: v1/types/oauth.ts:187

Rotates on every use - the previous refresh token is invalidated once a new one is issued.


scope

scope: string

Defined in: v1/types/oauth.ts:192

Space-separated list of scopes actually granted, which may be narrower than what was requested if the user declined some scopes on the consent screen.


token_type

token_type: "Bearer"

Defined in: v1/types/oauth.ts:179