Library referenceClasses
TokenSession
the token bound resources plus the token's claims; made by Krunker.as(token)
Constructors
Constructor
new TokenSession(
gapi,
legacy,
token,
claims
): TokenSession;Parameters
| Parameter | Type |
|---|---|
gapi | KrunkerClient |
legacy | KrunkerClient |
token | string |
claims | TokenClaims |
Returns
TokenSession
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
claims | readonly | TokenClaims | who the token belongs to, the key to cache anything read here under |
creator | readonly | TokenCreatorApi | - |
market | readonly | TokenMarketApi | - |
player | readonly | TokenPlayerApi | - |
ranked | readonly | TokenRankedApi | - |
shop | readonly | TokenShopApi | - |
staff | readonly | TokenStaffApi | - |
trades | readonly | TokenTradesApi | - |