Repository navigation
feat(mosaic): verify the sign-up email by link - #11049
Draft
austincalvelage wants to merge 11 commits into
Draft
austincalvelage wants to merge 11 commits into
austincalvelage wants to merge 11 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
🦋 Changeset detectedLatest commit: 7f4d2c9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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 |
2 of 9 tasks
4 of 9 tasks
austincalvelage
force-pushed
the
austin/mosaic-sign-up-email-link
branch
from
December 2, 2026 05:05
5371936 to
a09ba78
Compare
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
austincalvelage
force-pushed
the
austin/mosaic-sign-up-email-link
branch
from
December 2, 2026 05:48
a09ba78 to
cad5c5e
Compare
austincalvelage
force-pushed
the
austin/mosaic-sign-up-email-link
branch
from
December 2, 2026 06:29
cad5c5e to
9fe01b7
Compare
austincalvelage
force-pushed
the
austin/mosaic-sign-up-email-link
branch
from
December 2, 2026 06:52
9fe01b7 to
7080ce2
Compare
austincalvelage
force-pushed
the
austin/mosaic-sign-up-email-link
branch
from
December 2, 2026 07:33
7080ce2 to
e7288a1
Compare
austincalvelage
force-pushed
the
austin/mosaic-sign-up-email-link
branch
from
December 2, 2026 17:00
e7288a1 to
6c8f47a
Compare
austincalvelage
force-pushed
the
austin/mosaic-sign-up-email-link
branch
from
December 2, 2026 17:30
6c8f47a to
a6d6bd6
Compare
…machine The status an email link resolves with is the activity machine's showingLinkStatus state, set by SHOW_LINK_STATUS and kept for the mount. The session a link created goes through FINALIZE with the loading screen and showsFailedLink, so a failed activation moves to that state with the failed status. This replaces the emailLinkStatus state and the sessionId the machine kept only to recognize that failure.
austincalvelage
force-pushed
the
austin/mosaic-sign-up-email-link
branch
from
December 2, 2026 17:55
a6d6bd6 to
7f4d2c9
Compare
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.
Description
Verifies the sign-up email by link in Mosaic
<SignUp />. Stacked on #11022.An instance that lists
email_linkon the email address used to end on Start over. Sign-up now sends the link, waits for it, and handles the page the link opens. The link wins whenever the instance enables it, also when the code is enabled too, as the legacySignUpVerifyEmailpicks it.Shared changes (for Mosaic reviewers)
email_linkinprepare_verification, records its redirect URL, and can open or expire the link the way FAPI does.1. The link screen sends a link each time it opens, and waits. As in legacy's
SignUpEmailLinkCard, opening the screen always sends a fresh link and starts a fresh wait, so a reload sends another one. A send FAPI refuses, such as its rate limit, shows its error, with Resend and Edit usable after the cooldown. Resend is locked for 60 seconds. Edit goes back to the form with the email kept and the password cleared, and stops the wait. If finishing fails after the link is opened elsewhere, the error shows on the screen and Edit and Resend stay usable, as in legacy.2. The wait ends by who opened the link.
3. The page the link opens is marked in the URL, like the OAuth return. Routing is in memory, so the link comes back to the same page with
__clerk_mosaic_sign_up=verify. Sign-up reads__clerk_statusonce and removes the parameters.__clerk_statusverified, with a session this client hasfailedstatus if activating fails, as legacy'sEmailLinkVerifydoesverified, with a session on another clientverified, with no session yetexpired,client_mismatch,transferable,failedThe link's return URL keeps only Mosaic's marker out of Clerk's own
__clerk_*params, as legacy builds it from the redirect params only. FAPI appends__clerk_statusrather than replacing it, so a leftover one (for example after a failed invitation) made a verified link read as invalid. The OAuth and enterprise returns share this URL, so an invitation's__clerk_ticketno longer comes back after them, also as in legacy.Differences from legacy that stay
Known gaps
React
<Activity>hide and show can leave the link screen waiting forever: hiding cancels the wait and showing does not start a new one.The marker moves to the router's return URL when feat(mosaic): Add links and return URLs that reopen a component's page in every routing mode #10860 lands, with the OAuth return's.
Poller.stop()in@clerk/shareddoes not clear a timer whose id is0, which the worker timers hand out first, so a stopped wait polled again. The model's cancel sets a flag the next tick checks. The fix inpoller.tsbelongs in its own PR, after which the flag can go.client_mismatchandtransferableare tested as URL statuses. The test fake does not produce them.A reload on the link screen returns to the first form, because routing is virtual.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude Code