Skip to content

fix(gamepass): clear account cache on relogin#290

Merged
lshw54 merged 2 commits into
codefrom
issue-289-gamepass-relogin
May 27, 2026
Merged

fix(gamepass): clear account cache on relogin#290
lshw54 merged 2 commits into
codefrom
issue-289-gamepass-relogin

Conversation

@lshw54
Copy link
Copy Markdown
Collaborator

@lshw54 lshw54 commented May 27, 2026

What

After GAMEPASS logout and relogin, AccountList could reuse stale service-account cache from the previous session. This meant the GAMEPASS login completed, but no accounts appeared until the app was restarted.

Fix

Clear session-scoped account data when the GAMEPASS success event arrives, before applying the newly authenticated session and navigating to AccountList.

This forces AccountList to fetch accounts for the fresh GAMEPASS session instead of trusting stale serviceAccounts left from the previous login.

Adds regression coverage for GAMEPASS success clearing stale cached service accounts.

Closes #289

@lshw54 lshw54 self-assigned this May 27, 2026
@lshw54 lshw54 merged commit 664090c into code May 27, 2026
3 checks passed
@lshw54 lshw54 deleted the issue-289-gamepass-relogin branch May 27, 2026 07:26
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.

GAMEPASS登出再登入後沒辦法顯示帳號

1 participant