loginWithXbox

fun loginWithXbox(credentials: XboxLiveToken): MinecraftToken

Exchanges an Xbox Live service token for a Minecraft access token.

Return

a token used to authenticate with protected Minecraft services.

See also

Parameters

credentials

An active Xbox Live service token.

Throws

if Minecraft's authentication service returns a malformed or incomplete response.

if Minecraft's authentication service returns a status code that isn't between 200 and 299, both included.