Library referenceTypes
OAuthTokens
type OAuthTokens = {
access_token: string;
expires_in: number;
refresh_token: string;
scope: string;
sub: string;
token_type: "Bearer";
};the reply of POST /oauth/token, for a code exchange and for a refresh
Properties
| Property | Type | Description |
|---|---|---|
access_token | string | kat_..., opaque, good for expires_in seconds |
expires_in | number | seconds, 3600 |
refresh_token | string | krt_..., works once: every refresh answers with a new one |
scope | string | space separated, what the player actually granted; can be less than what was asked for |
sub | string | the player's subject id in this app |
token_type | "Bearer" | - |