Skip to content

Support multiple Microsoft cookie payload formats#961

Merged
AlexProgrammerDE merged 1 commit intosoulfiremc-com:mainfrom
FoxYolk:main
Apr 5, 2026
Merged

Support multiple Microsoft cookie payload formats#961
AlexProgrammerDE merged 1 commit intosoulfiremc-com:mainfrom
FoxYolk:main

Conversation

@FoxYolk
Copy link
Copy Markdown
Contributor

@FoxYolk FoxYolk commented Mar 17, 2026

Replace the simple line-based parsing in loadFromString with splitAccountPayloads to better handle MICROSOFT_JAVA_COOKIES payloads. The new method trims input, returns empty for blank data, and for Microsoft cookie auth can detect cookie-jar (tab-separated entries containing login.live.com) or CookieEditor JSON arrays (simple starts/ends and contains "name"/"value"). Those formats are split on double-newlines, stripped, filtered and deduplicated; otherwise the original line-based splitting/stripping/filtering/distinct behavior is used. Added helper predicates looksLikeCookieJar and looksLikeCookieEditorJson.

Replace the simple line-based parsing in loadFromString with splitAccountPayloads to better handle MICROSOFT_JAVA_COOKIES payloads. The new method trims input, returns empty for blank data, and for Microsoft cookie auth can detect cookie-jar (tab-separated entries containing login.live.com) or CookieEditor JSON arrays (simple starts/ends and contains "name"/"value"). Those formats are split on double-newlines, stripped, filtered and deduplicated; otherwise the original line-based splitting/stripping/filtering/distinct behavior is used. Added helper predicates looksLikeCookieJar and looksLikeCookieEditorJson.
@AlexProgrammerDE AlexProgrammerDE merged commit c204438 into soulfiremc-com:main Apr 5, 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.

2 participants