Skip to content

Instantly share code, notes, and snippets.

@dewycube
dewycube / minecraft_token.py
Last active June 11, 2024 03:47
Minecraft Token
# This is how you get a minecraft token using a microsoft account (like the launcher does).
# The minecraft token is used to join servers, change username, skin, cape, ...
import requests
# License: do whatever you want.
print("You must manually use a web browser to login at https://login.live.com/oauth20_authorize.srf?client_id=00000000402B5328&redirect_uri=https://login.live.com/oauth20_desktop.srf&response_type=code&scope=service::user.auth.xboxlive.com::MBI_SSL")
blank_page_url = input("After login you will be redirected to a blank page, paste its url here: ")