Appearance
@loontail/minecraft-kit / RefreshOptions
Type Alias: RefreshOptions
ts
type RefreshOptions = {
clientId?: AzureClientId;
signal?: AbortSignal;
};Defined in: src/auth/options.ts:23
Options accepted by kit.auth.refresh.
Example
ts
import type { RefreshOptions } from "@loontail/minecraft-kit";
const options: RefreshOptions = { clientId: "00000000-0000-0000-0000-000000000000" };
const session = await kit.auth.refresh(savedRefreshToken, options);Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
clientId? | readonly | AzureClientId | Azure AD application id; defaults to process.env.MINECRAFT_KIT_MSA_CLIENT_ID. | src/auth/options.ts:25 |
signal? | readonly | AbortSignal | - | src/auth/options.ts:26 |