Interface: TokenSet
Interface: TokenSet in @ticketlayer/backstage.
@ticketlayer/backstage / TokenSet
Defined in: auth/index.ts:273
Properties#
accessToken#
accessToken: string;Defined in: auth/index.ts:274
expiresAt#
expiresAt: number;Defined in: auth/index.ts:280
When the access token expires, in epoch milliseconds, measured on this machine.
expiresIn#
expiresIn: number;Defined in: auth/index.ts:278
Seconds the access token lasts, as answered.
idToken?#
optional idToken: string;Defined in: auth/index.ts:284
organisation#
organisation: OrganisationRef | null;Defined in: auth/index.ts:286
The organisation the access token is pinned to, or null when none was chosen yet.
organisations?#
optional organisations: {
id: string;
name: string;
slug: string;
}[];Defined in: auth/index.ts:294
The person's organisations, from the id_token's organisations claim
when the organisations scope was granted (the first-party default): the
data for an organisation picker before selectOrganisation.
session.listOrganisations() reads the same list from the API, with test
mode, at any time.
id#
id: string;name#
name: string;slug#
slug: string;refreshToken?#
optional refreshToken: string;Defined in: auth/index.ts:282
Rotated on every refresh: keep the newest (a packaged app keeps it in the OS keychain).
scope?#
optional scope: string;Defined in: auth/index.ts:283
tokenType#
tokenType: string;Defined in: auth/index.ts:276
DPoP when the tokens are bound to a key, else Bearer.