Skip to main content
Version: 1.12.0

Interface: AccessToken

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

An OAuth 2.0 access token with optional refresh metadata.

Mirrors golang.org/x/oauth2.Token. 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:44

The bearer access token (JWT).


expiresAt?

optional expiresAt?: number

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

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


refreshToken?

optional refreshToken?: string

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

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


tokenType?

optional tokenType?: string

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

Token type, typically "Bearer".