Appearance
@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
| Member | Type | Value | Description |
|---|---|---|---|
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. |