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?
optionalexpiresAt?:number
Defined in: canton/authentication/types.ts:48
Absolute expiry (epoch ms). undefined when the server did not return expires_in.
refreshToken?
optionalrefreshToken?:string
Defined in: canton/authentication/types.ts:50
Refresh token (authorization code flow only). Used to obtain new access tokens.
tokenType?
optionaltokenType?:string
Defined in: canton/authentication/types.ts:46
Token type, typically "Bearer".