Repository navigation
fix: use /um/ endpoints now that steam pages no longer expose a webapi token - #293
Merged
ganey merged 4 commits intoDec 4, 2026
Merged
Conversation
…i token Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ganey
force-pushed
the
fix/um-endpoints-replace-webapi-token
branch
from
December 4, 2026 16:35
f670896 to
e137b0b
Compare
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Steam pages no longer expose a WebAPI access token (
webapi_token,loyalty_webapi_token,g_wapit), so the calls that relied on one fail, are skipped, or run anonymously.pointssummary/ajaxgetasyncconfignow redirects to the store home page, which broke the family shared library, and the discovery queue throws at load.Changes
scripts/um.js(new): a small protobuf encoder/decoder andUmCallfor Steam's/um/<Service>/<Method>endpoints, authenticated by the login cookie. Const methods use GET withinput_protobuf_encoded, others use POST with anapplication/octet-streambody, and the call throws unlessX-eresultis 1. Field numbers come from SteamDatabase/Protobufs.explore.js:Store.GetDiscoveryQueueandStore.SkipDiscoveryQueueItemgo through/um/, with no token needed./um/rejects a foreignOrigin, so the background worker can no longer fetch it. A newstore/family.jsfetchesFamilyGroups.GetSharedLibraryAppson store pages and hands the result to the background worker, which stores it in the existinguserfamilydatacache (6h) and serves it to steamdb.info.inventory.js: removed the badge info feature, sincePlayer.GetBadgesis not exposed on/um/.tests/um.test.js(Node's built-in runner) covers the protobuf round trip, truncated input, and the GET/POST/error behavior ofUmCall. It runs as part ofnpm test.Notes
steamdb.info only gets family data after a store page has been visited within the last 6 hours. Otherwise it uses the stale cache, or shows the existing error if there is none.
In Firefox, content scripts get a wrapped
ArrayBuffer, and decoding it threwPermission denied to access property "constructor".UmCallnow copies the response into a localUint8Array.The inventory badge setting (
enhancement-inventory-badge-info) is still in the options page, with its locale strings and CSS. It no longer does anything and can be removed in a follow-up.achievements.jsis intentionally untouched. It still reads the removedloyalty_webapi_tokenattribute, but Steam now redirects the old achievements pages to/achievements/<appid>, and fix: support steam's new achievements page #289 rewrites that file for the new page. The token cleanup belongs there.Testing
npm testpasses. Tested manually while logged in to Steam, in Chrome, Edge and Firefox:Userdata loaded Packages 500 Family Apps 12./exploreAuto-discover: "Queue has been explored", withGetDiscoveryQueueandSkipDiscoveryQueueItemreturning 200.🤖 Generated with Claude Code