Minecraft Auth
Provides methods for authenticating with Minecraft-related services.
Parameters
http Client
An HTTP client used to send requests to Minecraft's authentication service.
xbox Client
An Xbox Live authentication client, used by the loginWithXbox method.
Constructors
Link copied to clipboard
Creates a client that communicates with Minecraft's authentication service via the provided httpClient.
Link copied to clipboard
Creates a client that communicates with Minecraft's authentication service via a builtin HttpClient.
Link copied to clipboard
Functions
Link copied to clipboard
Simplifies the login process by logging into Xbox Live internally, then exchanging that token for a Minecraft access token.
Link copied to clipboard
Exchanges an Xbox Live service token for a Minecraft access token.