Skip to content

chore(mosaic): export isReverificationError - #10214

Open
austincalvelage wants to merge 19 commits into
fredrik/reverification-handle-row-level-reverificationfrom
austin/mosaic-export-is-reverification-error
Open

austincalvelage wants to merge 19 commits into
fredrik/reverification-handle-row-level-reverificationfrom
austin/mosaic-export-is-reverification-error

Conversation

@austincalvelage

Copy link
Copy Markdown
Member

Description

Exports isReverificationError from packages/mosaic/src/utils/errors.ts.

save() already rethrows reverification errors, so a model callback that uses it can be wrapped in useReverificationFlow. A model that maps its own errors has no way to do the same, because the check was private. The password model is the first one that needs it (#10194): it formats complexity and breached-password errors itself, and must let a required or cancelled reverification through untouched.

No behavior changes. docs/models.md gains a sentence pointing at the helper.

Stacked on #10203.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Ephem and others added 19 commits October 12, 2026 21:44
Also refactors tests to feature tests
A model that maps its own errors can now let reverification errors through, the way save() already does, so its callback can be wrapped in useReverificationFlow.
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Oct 13, 2026 5:32pm UTC
swingset Ready Ready Preview Oct 13, 2026 5:32pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7902229

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

This PR includes changesets to release 0 packages

When 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

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: a7ce0ae5-df38-42e0-8185-f667a58c90ab

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@Ephem
Ephem force-pushed the fredrik/reverification-handle-row-level-reverification branch from 96262dd to 3f482fd Compare October 14, 2026 09:38

This branch was successfully deployed

2 active deployments
Preview – swingset — 79022295 Deployed Oct 13, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 79022295 Deployed Oct 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants