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 Risposta
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
con risposta 3 mesi fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande