Skip to content

fix(clerk-js): Prompt for reverification before deleting an organization (Core 2) - #10875

Merged
wobsoriano merged 2 commits into
release/core-2from
gabriel/orgs-2087-core-2-org-delete-reverification
Nov 18, 2026
Merged

wobsoriano merged 2 commits into
release/core-2from
gabriel/orgs-2087-core-2-org-delete-reverification

Conversation

@gabrielmeloc22

Copy link
Copy Markdown
Contributor

Description

Deleting an organization from <OrganizationProfile /> in clerk-js v5 calls organization.destroy() directly, with no reverification. clerk/clerk_go#24274 makes FAPI require reverification for DELETE /v1/organizations/{id} on instances that turn reverification on. Without this backport, users on v5 would get an error when they try to delete an org, and no verification modal. About 1,200 production instances that have reverification and organizations on still run v5 as their newest clerk-js. They load it from the CDN pinned to the major version, so they'll get this fix without upgrading.

This backports #10871: it wraps the delete action in useReverification, the same way DeleteUserForm already wraps user.delete(). Nothing changes on instances without reverification.

Merge order: #10871 and this PR first, then clerk/clerk_go#24274.

Checklist

  • pnpm test runs as expected. (Ran the OrganizationProfile delete/leave tests. The new test fails without the fix.)
  • pnpm build runs as expected.

Type of change

  • 🐛 Bug fix

Part of ORGS-2087

Deleting an organization from <OrganizationProfile /> in clerk-js v5 called destroy() directly, so once FAPI requires reverification for it, v5 users would get an error instead of the verification modal. This backports the useReverification wrap from #10871.

Part of ORGS-2087
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
mosaic-docs Error Error Nov 18, 2026 7:56pm UTC
swingset Error Error Nov 18, 2026 7:56pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
clerk-js-sandbox Skipped Skipped Nov 18, 2026 7:56pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9cf5551

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo 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

@coderabbitai

coderabbitai Bot commented Nov 17, 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

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

@blacksmith-sh

blacksmith-sh Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Matches Org delete prompts reverification

Before, the 403 surfaced as an inline error with no modal; after, the Verification required modal opened, and after a password the DELETE was retried, succeeded, and the page left the profile.

Merge-base

After clicking Delete

This PR a098ba58

After clicking Delete

Merge-base

FAPI calls

This PR a098ba58

FAPI calls

After verifying

Proof on a098ba58 · mocked: Clerk Frontend API (The sandbox's shared dev instance is at its 100-user limit, so no test user coul...) · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@gabrielmeloc22 gabrielmeloc22 changed the title fix(clerk-js): prompt for reverification before deleting an organization (core 2) fix(clerk-js): Prompt for reverification before deleting an organization (Core 2) Nov 18, 2026
@pkg-pr-new

pkg-pr-new Bot commented Nov 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@10875

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@10875

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@10875

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@10875

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@10875

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@10875

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@10875

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@10875

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@10875

@clerk/express

npm i https://pkg.pr.new/@clerk/express@10875

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@10875

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@10875

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@10875

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@10875

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@10875

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@10875

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@10875

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@10875

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@10875

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@10875

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@10875

@clerk/types

npm i https://pkg.pr.new/@clerk/types@10875

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@10875

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@10875

commit: 9cf5551

@wobsoriano
wobsoriano merged commit 61cec9e into release/core-2 Nov 18, 2026
41 of 46 checks passed
@wobsoriano
wobsoriano deleted the gabriel/orgs-2087-core-2-org-delete-reverification branch November 18, 2026 20:07

This branch had an error being deployed

1 failed and 1 inactive deployments
Preview – swingset — 9cf55512 Deployed Nov 18, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 9cf55512 Deployed Nov 18, 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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants