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개 답변
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
답변함 3달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠