UNPKG

onelnchr-mc-auth

Version:

Package to authenticate with minecraft. Fork of minecraft-auth by dommilosz which uses my own appID by default.

7 lines (6 loc) 560 B
import { MCAuthResponse } from "./MojangAuth.types"; export declare function authenticate(username: string, password: string, clientToken?: string): Promise<MCAuthResponse>; export declare function refresh(accessToken: string, clientToken: string): Promise<MCAuthResponse>; export declare function validateToken(token: string, alternativeValidation?: boolean): Promise<boolean | undefined>; export declare function _validateToken(token: string): Promise<boolean | undefined>; export declare function _validateTokenAlternative(token: string): Promise<boolean>;