Repository navigation
fix(clerk-js): Prompt for reverification before deleting an organization (Core 2) - #10875
wobsoriano merged 2 commits into
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
🦋 Changeset detectedLatest commit: 9cf5551 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/elements
@clerk/clerk-expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/clerk-react
@clerk/react-router
@clerk/remix
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/themes
@clerk/types
@clerk/upgrade
@clerk/vue
commit: |

Description
Deleting an organization from
<OrganizationProfile />in clerk-js v5 callsorganization.destroy()directly, with no reverification. clerk/clerk_go#24274 makes FAPI require reverification forDELETE /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 wayDeleteUserFormalready wrapsuser.delete(). Nothing changes on instances without reverification.Merge order: #10871 and this PR first, then clerk/clerk_go#24274.
Checklist
pnpm testruns as expected. (Ran theOrganizationProfiledelete/leave tests. The new test fails without the fix.)pnpm buildruns as expected.Type of change
Part of ORGS-2087