onelnchr-mc-auth
Version:
Package to authenticate with minecraft. Fork of minecraft-auth by dommilosz which uses my own appID by default.
21 lines (20 loc) • 644 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import http from "http";
export type ListeningHttpServer = http.Server & {
abort?: () => void;
fullClose: (success: boolean) => void;
serverTimeout?: NodeJS.Timeout;
};
export type AccountType = "mojang" | "cracked" | "microsoft" | "token";
export declare class AuthenticationError extends Error {
additionalInfo?: string;
constructor(_error: string, _message: string, _additionalInfo?: string);
}
export declare class OwnershipError extends Error {
constructor(_error: string);
}
export type PKCEPairType = {
verifier: string;
challenge: string;
};