Skip to content

@loontail/minecraft-kit v0.8.14 / AuthModes

Variable: AuthModes

ts
const AuthModes: {
  OFFLINE: "offline";
  ONLINE: "online";
};

Authentication modes accepted by the launch composer.

Example

ts
import { AuthModes, type LaunchAuth } from "@loontail/minecraft-kit";

const auth: LaunchAuth = { mode: AuthModes.OFFLINE, username: "Steve" };

Type declaration

MemberTypeValueDescription
OFFLINE"offline""offline"Offline-mode play with a chosen username and synthetic UUID.
ONLINE"online""online"Pre-authenticated session — caller provides the access token and identity.

Source

src/types/auth.ts:11

MIT License