Skip to main content

Interface: TokenResponse

Defined in: types.ts:22

Normalized token response returned by every client method that talks to the provider's token endpoint. raw preserves provider-specific fields (e.g. TikTok's open_id) that the generic shape does not model.

Properties

accessToken

accessToken: string

Defined in: types.ts:24

Short-lived access token used to call the provider's API.


expiresIn

expiresIn: number

Defined in: types.ts:28

Lifetime of the access token, in seconds.


raw

raw: Record<string, unknown>

Defined in: types.ts:30

Untouched JSON body from the provider, for provider-specific fields.


refreshToken

refreshToken: string

Defined in: types.ts:26

Long-lived token used to obtain new access tokens.