MinecraftAuth

fun MinecraftAuth(httpClient: HttpClient)

Creates a client that communicates with Minecraft's authentication service via the provided httpClient.

If the loginWithXbox method is used, requests to Xbox Services will be sent using that httpClient as well.


fun MinecraftAuth()

Creates a client that communicates with Minecraft's authentication service via a builtin HttpClient.


fun MinecraftAuth(httpClient: HttpClient, xboxClient: XboxLiveAuth)

Parameters

httpClient

An HTTP client used to send requests to Minecraft's authentication service.

xboxClient

An Xbox Live authentication client, used by the loginWithXbox method.