Repository navigation
Games: Check again for a Play Games profile after it was deleted - #4064
Open
haydexlawal wants to merge 1 commit into
Open
haydexlawal wants to merge 1 commit into
haydexlawal wants to merge 1 commit into
Conversation
After a Play Games profile was deleted, microG could still treat the account as signed in to Play Games: - If profile creation is turned off, the profile microG had cached from before was kept. On the next sign-in microG skipped the check with Google and reported success, so the game kept asking to sign in. - A sign-in token saved before the deletion is no longer accepted by Google, and the profile check failed instead of asking for a new token. Now microG forgets the cached profile when Google says it no longer exists, and asks for a new token once when the saved one is rejected. Issue: https://gitlab.e.foundation/e/os/backlog/-/work_items/4101
This was referenced Dec 4, 2026
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.
After a Play Games profile is deleted, microG can still behave as if the account has one:
games/v1/players/mereturnedfalsebut kept the player cached inGamesConfigurationService. The next sign-in gotissueAdvice=storedand a cached player, so it skipped the check and reported success. The game kept asking to sign in.games_litetoken saved before the deletion gets a 401 fromplayers/me. That error isn't handled, so sign-in failed.This change clears the cached player on 404 when the profile won't be created. On 401 it invalidates the token and requests a new one once before checking again.
Tested on /e/OS 4.5 (Android 15 and Android 16):
Related: #4063 changes the same 404 branch, so whichever is merged second needs a small rebase.