Adding email address to account with phone number login attribute

0

I have a user pool that allows both email and phone number for creating an account, but not a username. My account creation flow in the app only allows users to choose one or the other to create their account. If a user has created an account with the email address (or phone number) and wants to switch to using the other, how can I allow that? I've tried manually adding and verifying a phone number to an account that already logs in with an email address. But even after adding that phone number I can't login with it.

1 réponse
0

Hi sbeyers, As far as my knowledge goes, what you want to achieve is actually doable customizing sign-in attributes, but unfortunately needs to be done while creating the User Poll and cannot be changed afterward; let's check this out and let me know if it helps: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases

HTH, Chris

profile pictureAWS
répondu il y a 3 mois
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions