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 ?

질문됨 2년 전254회 조회
1개 답변
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
답변함 2년 전

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

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

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

관련 콘텐츠