amplify-ui icon indicating copy to clipboard operation
amplify-ui copied to clipboard

Add a service override to React Authenticator for the Resend Code button.

Open joealynn opened this issue 1 year ago • 2 comments

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

My web application has always upper-cased the user's entry of username: We store it in Cognito as all uppercase. Under V5, I was able to do this by overriding the handleSignUp, handleSignIn, handleForgotPassword, and handleForgotPasswordSubmit services to grab the username entered, convert it to uppercase and invoke the corresponding Auth service.

Under V6, I found that I also had to override handleConfirmSignUp. I have everything working, except when the Resend Code button is clicked: the username is sent as entered and not found by Cognito if it was not all uppercase. I see that there is a 'resendSignUpCode' function in aws-amplify/auth, but no 'handleResetSignUpCode' in the defaultServices file. Can this be added, please?

Please describe a solution you'd like.

Support a new entry in the services passed to the Authenticator component: services.handleResendSignUpCode, which if present should be called when the Resend Code button is clicked.

We love contributors! Is this something you'd be interested in working on?

  • [X] 👋 I may be able to implement this feature request.
  • [ ] ⚠️ This feature might incur a breaking change.

joealynn avatar Dec 01 '23 17:12 joealynn

@joealynn This makes sense to me, will look in to adding it to our roadmap!

calebpollman avatar Dec 01 '23 17:12 calebpollman