Closed ybonjour closed 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hey @ybonjour ! Closing this issue since we got that PR merged. If you happen to run into this issue again, please re-open this issue.
Thank you for your contribution to AmplifyJS, it's greatly appreciated 😄
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
In the Cognito User Pool we have users with verified email adresses. But the email verified Attribute was set to "True" through the AWS SDK.
When we now call
Auth.verifiedContact(user)
with one of these users it returns the email address as an unverified item.The problem is that
Expected behavior
In this case I would expect Auth.verfiedContact to return the email address as verified. This also used to be the case for older aws-amplify versions.
Reproduction steps
CognitoIdentityProviderClient.adminCreateUser
and add an attribute with key "email_verfied" and value "True" (uppercase)More concrete I would expect
Auth.attributesToObject
to treat attribute values that represent booleans as not case sensitive. So instead ofI would expect something like
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