loginWithMicrosoft

fun loginWithMicrosoft(microsoftToken: String): MinecraftToken

Simplifies the login process by logging into Xbox Live internally, then exchanging that token for a Minecraft access token.

Parameters

microsoftToken

A valid access token for a Microsoft account.

Throws

if Xbox Live returns a malformed or incomplete response.

if Xbox Live returns a status code that isn't between 200 and 299, both included.

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