fix(playtest): stop promising a password the portal cannot set #248
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github-actions
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Evobug/api!248
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/playtest-disconnect-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Disconnecting your last connected provider was refused with "This is your only way to sign in - set an account password or email first". Neither half of that advice is actionable:
password && email), so a player who already has one is told to add the thing they already have.What changed
signInMethods()is now one function, read by both the account payload and the disconnect guard, so what the screen offers and what the server allows cannot drift apart.playtest.account.getreturnscanDisconnectper connection. The portal greys the button out with the reason instead of letting the player find the rule by hitting an error.Tests
New
src/contract/playtest/account.spec.tscovers the last-method refusal, the flag the screen reads, a disconnect while another provider remains, and email+password counting as a way back in (with email alone not counting).bun test src/contract/playtest/account.spec.ts-> 4 pass,bunx tsgo --noEmitclean.Portal side is a companion PR on
playtest.evobug.com(fix/account-connections-and-signed-in-state): it consumescanDisconnectand adds a "Switch" action for relinking a connection to a different provider account.🤖 Generated with Claude Code
https://claude.ai/code/session_01E5AqBX91uuBcqPk325zsMM