Skip to main content
Version: 1.13.1

Interface: AccessToken

Defined in: canton/authentication/types.ts:35

An OAuth 2.0 access token with optional refresh metadata.

The expiresAt field is derived from expires_in (seconds) at fetch time so callers can check staleness without re-parsing the JWT.

Properties

accessToken

accessToken: string

Defined in: canton/authentication/types.ts:37

The bearer access token (JWT).


expiresAt?

optional expiresAt?: number

Defined in: canton/authentication/types.ts:41

Absolute expiry (epoch ms). undefined when the server did not return expires_in.


refreshToken?

optional refreshToken?: string

Defined in: canton/authentication/types.ts:43

Refresh token (authorization code flow only). Used to obtain new access tokens.


tokenType?

optional tokenType?: string

Defined in: canton/authentication/types.ts:39

Token type, typically "Bearer".