Skip to content

@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

PropertyModifierTypeDescriptionDefined in
clientId?readonlyAzureClientIdAzure AD application id; defaults to process.env.MINECRAFT_KIT_MSA_CLIENT_ID.src/auth/options.ts:25
signal?readonlyAbortSignal-src/auth/options.ts:26

MIT License