Repository navigation
feat(ui): prompt for reverification before deleting an organization - #10871
Conversation
Deleting an organization from <OrganizationProfile /> called destroy() directly, so once FAPI requires reverification for it, users would get an error instead of the verification modal. The delete is now wrapped in useReverification, the same way account deletion is. Part of ORGS-2087
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@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: |
API Changes Report
Summary
No API Changes DetectedAll packages have stable APIs with no detected changes. Report generated by Break Check Last ran on |
|

Description
Deleting an organization from
<OrganizationProfile />doesn't ask the user to reverify, even on instances that require reverification for sensitive actions. Deleting your own account already does. The backend is adding reverification toDELETE /v1/organizations/{id}. If this component stays as it is, users on those instances would get an error when they try to delete an org, and no verification modal.This wraps the delete action in
useReverification, the same wayDeleteUserFormwrapsuser.delete(). If FAPI returnssession_reverification_required, the verification modal opens, and the delete retries after the user verifies. Nothing changes on instances without reverification.This needs to ship before the backend PR (clerk/clerk_go#24274). Otherwise older versions of this component fail to delete an org with no prompt.
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