Email & Phone Alias comes into play only when username sign-in option enabled?

0
Scenario #1: user pool sign-in option is set to Email & Phone number only. No Username.

I am able to sign-up user & sms verify phone number. However if i try to login with the phone number, I get UserNotFound Exception.

Scenario #2: user pool sign-in option is set to Email, Phone Number & Username

I am able to sign-up with dummy username, email & sms verify phone number. I am able to login with either (phone number, password) or (email, password) combination.

So the Alias (Email or Phone) comes into play only when username is set as a sign-in option ?

preguntada hace 2 años260 visualizaciones
1 Respuesta
0

You can select only email and phone number without username, but you will have to pick either email or phone number at sign-up as the user identifier. See the Cognito user pool sign-in options information, "If you select only phone number and email, your user will be prompted to select one of the two sign-in options when they sign up". So if you pick email at sign-up, then you can't use phone number to sign in.

AWS
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas