1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
To add all three attributes email
, phone_number
, preferred_username
as sign in options while adding auth category using Amplify CLI, you would have to add all three under aliasAttributes in cli-inputs.json
and remove usernameAttributes
and autoVerifiedAttributes
keys. Steps for the same are mentioned below.
-
Select
Email or Phone Number
as the sign in option while adding auth. -
Under
amplify/backend/auth/<auth-name>/cli-inputs.json
, make the following changes.a. "aliasAttributes": ["email", "phone_number", "preferred_username"],
b. Remove
usernameAttributes
andautoVerifiedAttributes
-
Execute "amplify push".
Reference :- https://github.com/aws-amplify/amplify-cli/issues/1546
Relevant content
- asked a year ago
- Accepted Answerasked 4 years ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
Hi Mukul_V, Thank you for sharing your response. I would like to mention that I have successfully configured my end.