Appearance
@loontail/minecraft-kit v0.8.14 / OfflineAuth
Type alias: OfflineAuth
ts
type OfflineAuth: {
mode: typeof AuthModes.OFFLINE;
username: string;
uuid: PlayerUuid;
};Offline authentication.
Example
ts
import { AuthModes, offlineUuidFor, type OfflineAuth } from "@loontail/minecraft-kit";
const auth: OfflineAuth = {
mode: AuthModes.OFFLINE,
username: "Steve",
uuid: offlineUuidFor("Steve"),
};Type declaration
| Member | Type | Description |
|---|---|---|
mode | typeof AuthModes.OFFLINE | - |
username | string | - |
uuid | PlayerUuid | Optional explicit UUID. When omitted, a deterministic UUID is derived from the username. |