Skip to content

fix(console): show which account joins on the invitation page - #3298

Merged
peintnermax merged 2 commits into
mainfrom
console-invitation-account
Nov 24, 2026
Merged

peintnermax merged 2 commits into
mainfrom
console-invitation-account

Conversation

@peintnermax

@peintnermax peintnermax commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Context

Summary

  • Account shown: under every state the page says Signed in as … with the sign-in identifier (two accounts may share a display name).
  • Use another account: signs out, keeps the token, and comes back to the invitation after sign-in.
  • Token bound to its first viewer (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 says Invitation unavailable. Only Use another account hands it on; a newly opened link has no holder.
  • ADR 086 §10: one bullet for the rule.

Screenshots

Open invitation (desktop, dark) Dropped or dead link (phone, light)
Invitation card with the signed-in account and Use another account under it Invitation unavailable card with the signed-in account under it

Validation

  • turbo run lint typecheck test --filter=@zitadel/console (1097 tests; 8 new for the holder rule and the page).
  • On 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.
  • The dropped-token case was checked in the browser by changing the stored holder and reloading, not by letting a real session expire.
  • Not run: e2e lanes.

Release notes / changeset

.changeset/console-invitation-account.md (@zitadel/server, patch).

Notes

  • Abandoned sign-in is mitigated, not closed: with no holder yet, the console cannot tell the next person to sign in from the invitee. They now see whose account would join.

🤖 Generated with Claude Code

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>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Nov 24, 2026 2:17pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: 6206d96

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@zitadel/server Patch
@zitadel/cli Patch
@zitadel/testing Patch
@zitadel/server-darwin-arm64 Patch
@zitadel/server-darwin-x64 Patch
@zitadel/server-linux-arm64 Patch
@zitadel/server-linux-x64 Patch
@zitadel/server-win32-x64 Patch
@zitadel/api Patch
@zitadel/components Patch
@zitadel/config Patch
@zitadel/sdk-angular Patch
@zitadel/sdk-core Patch
@zitadel/sdk-next Patch
@zitadel/sdk-nuxt Patch
@zitadel/sdk-qwik Patch
@zitadel/sdk-qwik-router Patch
@zitadel/sdk-react Patch
@zitadel/sdk-solid Patch
@zitadel/sdk-solid-start Patch
@zitadel/sdk-svelte Patch
@zitadel/sdk-sveltekit Patch
@zitadel/sdk-tanstack-start Patch
@zitadel/sdk-vue Patch
@zitadel/cloud Patch
@zitadel/client-sdk-contract Patch
@zitadel/server-sdk-contract Patch

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>
@peintnermax
peintnermax added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 9a4c6f2 Nov 24, 2026
17 checks passed
@peintnermax
peintnermax deleted the console-invitation-account branch November 24, 2026 14:28
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Nov 24, 2026

This branch was successfully deployed

1 active deployment
Preview — 6206d96d Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants