1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 ans
- AWS OFFICIELA mis à jour il y a 2 ans
Hi Mukul_V, Thank you for sharing your response. I would like to mention that I have successfully configured my end.