Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

enter image description here

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

enter image description here

How can I fix this?

like image 378
Bruno Quaresma Avatar asked May 23 '17 19:05

Bruno Quaresma


1 Answers

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.

like image 140
Jeff Bailey Avatar answered Sep 22 '22 23:09

Jeff Bailey