I have cognito set up to allow both email addresses and phone numbers. Here is the the scenerio.
- Sign up User
A
with email[email protected]
and auto verify the email using CognitoIdentityServiceProvider#signup withusername : [email protected]
andUserAttributes
for the email address. - Update the users account with a phone number
123-456-7899
and auto verify the phone number - Attempt to login with
123-456-7899
- Instead of logging in user
A
which currently has a verified phone number of123-456-7899
it creates userB
Is there any way to let users have unique phone numbers and emails and be able to login in with both? Or does the signup always go based on the initial username
?