UNPKG

@xmcl/user

Version:

Minecraft user related functions, including Yggdrasil authenticator, player skin fetcher, and Mojang security API

29 lines 778 B
import { getOfflineUUID } from 'user-offline-uuid'; /** * Random generate a new token by uuid v4. It can be client or auth token. * @returns a new token */ export declare function newToken(): string; export { getOfflineUUID }; /** * Create an offline auth. It'll ensure the user game profile's `uuid` is the same for the same `username`. * * @param username The username you want to have in-game. */ export declare function offline(username: string, uuid?: string): { accessToken: string; clientToken: string; selectedProfile: { id: string; name: string; }; availableProfiles: { id: string; name: string; }[]; user: { id: string; username: string; }; }; //# sourceMappingURL=offline.d.ts.map