Username cannot be of email format, since user pool is configured for email

柔情痞子 提交于 2021-02-07 12:15:40

问题


When I try sign up an user in AWS Cognito this error is returned in response.:

But, in my config the email field is an alias.:

How can I fix this?


回答1:


By that error message, it looks like it's failing because you have email as an alias but have also set given it as your username. I think to get around this, you could either use some temporary, throw away username at first or un-check it as an alias and just use it as both username and an attribute. The former gives you more flexibility to updating it, but that's ultimately up to your application's needs.



来源:https://stackoverflow.com/questions/44143970/username-cannot-be-of-email-format-since-user-pool-is-configured-for-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!