-
Notifications
You must be signed in to change notification settings - Fork 342
Open
Labels
Description
Before creating a new issue, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have tried disabling all browser extensions or using a different browser
- I have tried deleting the node_modules folder and reinstalling my dependencies
- I have read the guide for submitting bug reports.
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
Vite, Amplify UI (no Amplify BE)
What browsers are you seeing the problem on?
No response
Which region are you seeing the problem in?
us-east-1
Please describe your bug.
- using
- using alias_attributes = ["email"]
- using Amplify UI only (no Amplify BE)
Signup works, user gets 6 digit code to the email.
User clicks "Resend Code".
User doesn't get another email with new code.
What's the expected behaviour?
User should get another email with a new 6 digit code.
I checked, emails don't go to spam.
New signup (to the same email after I delete it from Cognito) does get the first email.
The HTTP that gets sent upon clicking Resend Code:
POST https://cognito-idp.us-east-1.amazonaws.com/
x-amz-target: AWSCognitoIdentityProviderService.ResendConfirmationCode
payload: {
ClientId:"f7gir36xxxxxxxxxxxx",
Username: "[email protected]"
}
and it returns with 200OK with:
{"CodeDeliveryDetails":{"AttributeName":"email","DeliveryMedium":"EMAIL","Destination":"h***@b***"}}Help us reproduce the bug!
- Cognito User Pool
- alias_attributes = ["email"]
- email verification code send by Cognito (haven't tried with SES yet)
- Use Amplify UI
<Authenticator components={{handleSignUp}}>...</Authenticator>- Signup with email+password (username is generated as a random UUID4 string)
const handleSignUp: typeof signUp = async (data) => {
const uuid = crypto.randomUUID()
data.username = uuid
return await signUp(data)
}- see 1st email with code
- click Resend Code
- 2nd email doesn't arrive
Code Snippet
// Put your code below this line.Console log output
No response
Additional information and screenshots
No response