Passing email ID as username is valid for Sign in process when using Cognito for MFA authentication?

0

I am using AWS Cognito in my application. I am providing email ID as username. I am able to do registration process for my application. But, while signing through API getting following error: Enter image description here Previously, I was using username for registration & login. So, its working fine. Now, we have created different user pool in that added 2 client apps 1 which having secret access & another 1 which don't have secret access which we are using through front end for MFA after login process. So, by using this user pool I am getting this error. (Note : Using same Secret & access key for both. Because, both user pools are from same account.) So, Now, I need solution on this, is email ID not valid to set as username in registration process?
How can I use email as username?

已提问 1 年前87 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则