Skip to content

feat: adds auth, implicit support for 64x64 skins,#1431

Closed
mattsumi wants to merge 4 commits intosmartcmd:mainfrom
mattsumi:main
Closed

feat: adds auth, implicit support for 64x64 skins,#1431
mattsumi wants to merge 4 commits intosmartcmd:mainfrom
mattsumi:main

Conversation

@mattsumi
Copy link
Copy Markdown
Collaborator

Description

Changes

Previous Behavior

this adds a new auth with microsoft, ely.by, and offline accounts. users can finally manage accounts in-game without doing cursed manual stuff outside the client (username.txt, forcefully needing to create dlc to add a skin, etc.)

Root Cause

the previous (attempted) implementation was fully vibecoded. currently there is no implementation for auth, and 64x64 skins have been asked for a while now.

New Behavior

full microsoft account login via device code flow (the xbox live auth chain is stupid btw, like 4 separate token exchanges just to get a damn minecraft profile). ely.by support for the alternative auth crowd. offline accounts with proper v3 UUIDs. all stored in sqlite instead of whatever json spaghetti was there before. native UI for managing accounts in-game so you dont have to alt-tab and edit files like its 2003.

Fix Implementation

new [newauth] static library handles all the oauth/xbl/xsts/mojang API nonsense. newauthManager is a singleton managing up to 4 auth slots for splitscreen. AuthDb uses sqlite for account and token storage with auto-migration from the old json garbage. three new packets (170-172) handle server-side auth negotiation. UIScene_MSAuth is the in-game account manager UI with device code display, offline username input, and ely.by login (including 2fa). also rolled a custom json parser because adding a dependency felt like overkill for reading like 5 fields.

AI Use Disclosure

No AI was used to write the code in this PR.

Related Issues

@codeHusky
Copy link
Copy Markdown
Collaborator

not up to quality standards, also includes contributions from a previous banned contributor that was making vibecoded PRs.

@codeHusky codeHusky closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants