easymc
Version:
An API for easymc.io, a site which allows you to use tokens to login to Minecraft accounts.
37 lines (31 loc) • 776 B
text/typescript
export interface ClientSettings {
version: string;
macVersion: string;
authServer: string;
updateUrl: string;
updateFile: string;
headUrl: string;
renderUrl: string;
}
export interface AltData {
token: string;
username?: string;
expiresIn?: number;
renewIn?: number;
}
export interface AltRedemption {
session: string;
uuid: string;
mcName: string;
userId: string;
}
export type SessionJoin = SessionJoinServerHash | SessionJoinServerId;
export interface BaseSessionJoin {
session: string;
}
export interface SessionJoinServerId extends BaseSessionJoin {
serverId: string;
}
export interface SessionJoinServerHash extends BaseSessionJoin {
serverHash: string;
}