Skip to content

@loontail/minecraft-kit / PlayerUuid

Type Alias: PlayerUuid

ts
type PlayerUuid = string & {
  __brand: "PlayerUuid";
};

Defined in: src/types/auth.ts:40

Branded Minecraft player UUID. Construct via asPlayerUuid (exported from the package root) — the brand prevents accidentally passing a Minecraft version id, an Xbox userhash, or another opaque string where the launch composer expects a player UUID.

offlineUuidFor already returns this brand; reach for asPlayerUuid when loading a saved UUID from disk or when the host environment supplies one.

Type Declaration

NameTypeDefined in
__brand"PlayerUuid"src/types/auth.ts:40

MIT License