TokenResponse interface

OAuth 2.1 token response per RFC 6749. Returned by the /token endpoint for all grant types. Matches backend TokenResponse model.

Properties

accessToken

The JWT access token (signed with asymmetric keys).

expiresIn

Access token lifetime in seconds (not milliseconds).

refreshToken

The revolving refresh token, when issued.

scope

Space-separated list of granted scopes, when present.

tokenType

The token type; always "Bearer".

Property Details

accessToken

The JWT access token (signed with asymmetric keys).

accessToken: string

Property Value

string

expiresIn

Access token lifetime in seconds (not milliseconds).

expiresIn: number

Property Value

number

refreshToken

The revolving refresh token, when issued.

refreshToken?: null | string

Property Value

null | string

scope

Space-separated list of granted scopes, when present.

scope?: null | string

Property Value

null | string

tokenType

The token type; always "Bearer".

tokenType: string

Property Value

string