Return both PlayFab entity tokens in auth callbacks#8
Merged
Daniel-Ric merged 2 commits intomasterfrom Jan 22, 2026
Merged
Conversation
…ed-tokens-in-callback
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.
Motivation
master_player_accountEntityToken (and its expiration) in addition to the default entity token so downstream clients can act with the master account when available.Description
src/routes/auth.routes.jsto request a second entity token formaster_player_accountwhenPlayFabIdis present and includeentityTokenMasterandentityTokenMasterExpiresOnin callback/refresh responses viabuildAuthCallbackResponse.src/utils/authResponse.jswithbuildAuthCallbackResponseto centralize shaping of the auth callback response and extended it to include the master token fields (entityTokenMaster,entityTokenMasterExpiresOn).src/utils/swagger.jsto add the two new fields to theAuthCallbackResponseschema.src/routes/debug.routes.jsto extract and decode the master entity token when decoding callback bundles.tests/authResponse.test.jsto validate the mapped callback payload includes the new master token fields.Testing
npm test, which executed the unit test suite includingtests/authResponse.test.js, and all tests passed (7/7).Codex Task