Repository navigation
fix(console): show which account joins on the invitation page - #3298
Merged
Merged
Conversation
The invitation page has no app shell, so it did not say who was signed in and offered no sign-out. A token left in sessionStorage (expired session, refused accept) was shown to whoever signed in on the tab next. - Name the signed-in account under every state and offer "Use another account", which signs out, keeps the token and returns after sign-in. - Bind the stored token to the first signed-in account it is shown to and drop it for any other; only "Use another account" hands it on. - Record the rule in ADR 086 §10. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🦋 Changeset detectedLatest commit: 6206d96 The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…the sign-out - Throw when the session survives the sign-out, so the token is not handed over - One action at a time across Join, Decline and Use another account - Show the token to no one when its holder cannot be recorded - Fall through an empty identifier Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch was successfully deployed
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.
Context
sessionStoragewhen the session expires, when a signed-out visitor abandons sign-in, and when accept is refused. The next person to sign in on that tab lands on the invitation, and the page neither showed which account would join nor offered a sign-out.Summary
Signed in as …with the sign-in identifier (two accounts may share a display name).features/invitations/token.ts): the first signed-in account the page shows the token to becomes its holder. For any other account on that tab the token is dropped and the page saysInvitation unavailable. Only Use another account hands it on; a newly opened link has no holder.Screenshots
Validation
turbo run lint typecheck test --filter=@zitadel/console(1097 tests; 8 new for the holder rule and the page).dev:claim: created an invitation, opened it as the inviter, pressed Use another account, signed up a second account and landed on the same invitation with that account named.Release notes / changeset
.changeset/console-invitation-account.md(@zitadel/server, patch).Notes
🤖 Generated with Claude Code