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 Antwort
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
beantwortet vor 3 Monaten
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen