Repository navigation
ref(auth): Compose invitation account authentication - #125939
Merged
evanpurkhiser merged 1 commit intoSep 30, 2026
Merged
evanpurkhiser merged 1 commit into
evanpurkhiser merged 1 commit into
Conversation
Contributor
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-hf2oyfyl0.sentry.dev |
Contributor
Sentry Snapshot Testing
|
evanpurkhiser
force-pushed
the
ref/auth-compose-invitation-account-authentication
branch
from
September 29, 2026 21:49
cff1090 to
dfc2513
Compare
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit dfc2513. Configure here.
evanpurkhiser
commented
Sep 29, 2026
evanpurkhiser
commented
Sep 29, 2026
evanpurkhiser
force-pushed
the
ref/auth-compose-invitation-account-authentication
branch
from
September 30, 2026 00:53
dfc2513 to
6343f2c
Compare
evanpurkhiser
force-pushed
the
ref/auth-compose-invitation-account-authentication
branch
from
September 30, 2026 01:09
6343f2c to
e6afa2a
Compare
evanpurkhiser
commented
Sep 30, 2026
evanpurkhiser
force-pushed
the
ref/auth-compose-invitation-account-authentication
branch
from
September 30, 2026 01:58
e6afa2a to
df4643c
Compare
evanpurkhiser
force-pushed
the
ref/auth-compose-invitation-account-authentication
branch
from
September 30, 2026 02:00
df4643c to
8806bba
Compare
natemoo-re
approved these changes
Sep 30, 2026
evanpurkhiser
deleted the
ref/auth-compose-invitation-account-authentication
branch
September 30, 2026 14:59
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.

Summary
Add
InvitationAuthentication, the account-creation and sign-in step for the composed invitation acceptance page. Invitees can authenticate within the invitation screen, then review and explicitly accept the invitation using the account they authenticated with.This component composes the registration and account-authentication forms used by the branded auth views. Keeping their form handling, authentication requests, provider links, and MFA UI shared lets fixes to the main authentication flow carry through to invitation acceptance.
Flow
RegistrationForm, prefilled with the invitation email. ItssecondaryActionrenders “Have an account? Sign in” using a translated link-style button.AccountAuthenticationfor password sign-in and the external-provider links supplied byauthConfig. “Don't have an account? Create one” returns to registration.authConfigtakes precedence over the initial registration view, allowing the parent to restore an in-progress sign-in.Invitation registration remains available when public signup is disabled; account creation continues to be authorized by the backend invitation session.
Component boundary
InvitationAuthenticationowns registration/sign-in navigation and the local MFA-method state. It receives authentication configuration and the initial registration email from its parent.Successful registration, password sign-in, or MFA completion calls
onAuthenticatedwith the authenticated account and destination. The wrapper delegates the next step to the parent: the invitation page refreshes the invitation requirements and presents acceptance. Invitation fetching, organization SSO, account switching, acceptance, and final navigation belong to the surrounding flow.This PR adds the component, its focused tests, and an interactive story. Route wiring and page orchestration are introduced in #125910, allowing this authentication step to be reviewed independently.
Verification
Focused component tests cover prefilled registration and navigation in both directions, successful registration without navigation, password sign-in and configured provider links when public signup is disabled, MFA completion before reporting authentication, and cancellation of a pending MFA challenge. The story documents the component's props and demonstrates the registration/sign-in UI.