accountΒΆ

account contains functions for interacting with your mojang account.

login_user(username, password)

Login to your mojang account. The response contains things like accessToken, clientToken, uuid and something else.

Note: You should never save username and password! Only the client token.

validate_access_token(username, password)

Returns true, if the accessToken is valid.Else it will return false. You should check that before frunning minecraft.

refresh_access_token(access_token, client_token)

Get a new accessToken.

logout_user(username, password)

Log a user out.

invalidate_access_token(access_token, client_token)

Make a accessToken invalid.