-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v6] sendUserAttributeVerificationCode not send code to destination email #13432
Comments
I try to add email value field like this https://github.com/pj4269/amplify-vite-react-template/blob/12be5f0d77ca9f182d3f33e29f1cc15d828676f8/src/components/Profile.tsx#L100 const email = '';
await sendUserAttributeVerificationCode({
userAttributeKey: 'email',
email, <======
} as SendUserAttributeVerificationCodeInput); |
Hello @natuan62 . You should get a verification code when using the The |
@israx thanks for your reply. but when I using
my email on cognito changed to new email, and email_verified set to false. but it didn't receive any email for verficiation code Did i missing some config on amplify-js, aws-config or cognito etc ? |
is |
@israx Yes email is optional and i'm using email to signIn also |
Hello! I'm going through exactly this problem. How did you solve it? My email field is optional too. Do I need to change it to mandatory only or do I need to do another step? |
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
email
attributeKeyExpected behavior
sendUserAttributeVerificationCode will works fine
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: