There occurred a mismatch when I had inserted email address of the user when signed up, in my db email address are in lower case but in cognito it's in upper case. Is there any way which I can convert those to lower case in cognito.
Thanks in advance.
Yes. You can edit this data by using: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html
or using awscli with: https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/admin-update-user-attributes.html
If you would like to insert Email lower case to Cognito later after sign up. You should use above API on PostConfirmation Lambda Trigger hook to convert Email because there is no way to transform email in Pre-Signup Lambda Trigger hook.
Hope this help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With