diff --git a/.changeset/pink-keys-shake.md b/.changeset/pink-keys-shake.md new file mode 100644 index 0000000000..ef3dd7fc4d --- /dev/null +++ b/.changeset/pink-keys-shake.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': minor +--- + +Implement Resend OTP functionality as part of the Organization Domain verification flow diff --git a/packages/clerk-js/src/ui/components/OrganizationProfile/VerifyDomainPage.tsx b/packages/clerk-js/src/ui/components/OrganizationProfile/VerifyDomainPage.tsx index 952c34eed7..4eb4d3184a 100644 --- a/packages/clerk-js/src/ui/components/OrganizationProfile/VerifyDomainPage.tsx +++ b/packages/clerk-js/src/ui/components/OrganizationProfile/VerifyDomainPage.tsx @@ -84,6 +84,9 @@ export const VerifyDomainPage = withCardStateProvider(() => { } const handleResend = () => { codeControl.reset(); + domain?.prepareAffiliationVerification({ affiliationEmailAddress: emailField.value }).catch(err => { + handleError(err, [emailField], card.setError); + }); }; const dataChanged = organization.name !== emailField.value;