Skip to content

Commit

Permalink
feat(clerk-js): Implement resend OTP functionality for Organization D…
Browse files Browse the repository at this point in the history
…omain

This commit implements the Resend OTP functionality on the Organization Domain
page, that tries to send again the email that contains the OTP code in order to
complete the verification flow
  • Loading branch information
chanioxaris committed Aug 11, 2023
1 parent 752ef46 commit d39c029
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-keys-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': minor
---

Implement Resend OTP functionality as part of the Organization Domain verification flow
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d39c029

Please sign in to comment.