Skip to content

Fix "Account save is paused: signed in as someone else" on phones - #343

Merged
ngcoding10 merged 2 commits into
mainfrom
claude/lucid-hawking-t8pygi
Nov 27, 2026
Merged

ngcoding10 merged 2 commits into
mainfrom
claude/lucid-hawking-t8pygi

Conversation

@ngcoding10

Copy link
Copy Markdown
Collaborator
  • Bug: on a phone at ascoding11.github.io (the phone page inside the home page's frame), signed in with Google, the Back Room showed "Account save is paused: the panels are signed in as someone else." and never saved.
  • Cause: the account save (account-nudge.js) uses the home page's Google sign-in, but the Party panel in the frame (party.js) started its own Firebase sign-in, often as a guest. The save checked once, saw two different accounts, and never retried, even after the panel caught up to the Google account a second later.
  • Fix:
    • party.js: inside the home page's frame, it now waits for the home page's sign-in and gives its Firebase app the same name, so both use the same Google sign-in.
    • account-nudge.js: when the accounts don't match yet, it shows "Connecting your account save…" and syncs as soon as the panel's account becomes the Google one. After 15 s it shows the old message, but still syncs once they match.
    • The safety check stays: nothing is ever written to another account's save.
  • Unchanged: Firebase config and rules, account/, and the storage paths (rooms/sv-saves/players/<uid> and the party paths). Guest play when not signed in works as before.
  • Tested against a stand-in Firebase in Playwright, never the live database. The message appeared in 3 setups before the fix and in none after. Pages load with no errors on desktop, the phone page and the home page.
  • Not yet tested on a real iPhone with real Google sign-in.
  • README updated; What's new is one file.

Generated by Claude Code

…one frame

- party.js: in the home page's phone frame, use the home page's SiteAccount
  (wait for its boot(), guess names from it) and name the frame's Firebase app
  like the home page's account app, so both share one saved sign-in and the
  frame follows a Google sign-in made on the home page.
- account-nudge.js: when Party's uid differs from the Google uid, show
  "Connecting your account save..." and re-sync as soon as Party's auth becomes
  that account (and once more after 15 s, then say it's paused). The uid check
  stays, so nothing is ever written to another account's node.
- README and a What's new fix entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cw2rM74nXSN426CQRHrrjU
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ascoding11 ready!

Name Link
🔨 Latest commit ea26dcf
🔍 Latest deploy log https://app.netlify.com/projects/ascoding11/deploys/6b095afc8e6b09d23591b464
😎 Deploy Preview https://deploy-preview-343--ascoding11.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ngcoding10
ngcoding10 merged commit ecf788b into main Nov 27, 2026
5 of 7 checks passed
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ascoding11-github-io with  Cloudflare Pages  Cloudflare Pages

Latest commit: ea26dcf
Status: ✅  Deploy successful!
Preview URL: https://f60509e1.ascoding11-github-io.pages.dev
Branch Preview URL: https://claude-lucid-hawking-t8pygi.ascoding11-github-io.pages.dev

View logs

@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cosmic-dasik-e73c56 ready!

Name Link
🔨 Latest commit ea26dcf
🔍 Latest deploy log https://app.netlify.com/projects/cosmic-dasik-e73c56/deploys/6b095afcd75c860023eb916c
😎 Deploy Preview https://deploy-preview-343--cosmic-dasik-e73c56.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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