Skip to content

@loontail/minecraft-kit v0.8.14 / AzureClientId

Type alias: AzureClientId

ts
type AzureClientId: string & {
  __brand: "AzureClientId";
};

Branded Azure AD application id. Construct via asAzureClientId (exported from the package root) — the brand prevents accidentally passing a refresh token or a UUID where the kit expects a client id.

Example

ts
import { asAzureClientId, type AzureClientId } from "@loontail/minecraft-kit";

const clientId: AzureClientId = asAzureClientId(process.env.MSA_CLIENT_ID ?? "");
await kit.auth.authorizationCode.run({ clientId, onOpenBrowser });

Type declaration

MemberType
__brand"AzureClientId"

Source

src/types/auth.ts:45

MIT License