- unit tests
- integration tests
- documentation with jsdoc
$ aws cognito-idp admin-create-user --user-pool-id USERPOOLID --username me@example.com --desired-delivery-mediums EMAIL --user-attributes Name=email,Value=me@example.com
Make sure Enable username password based authentication (ALLOW_USER_PASSWORD_AUTH) config is turned on. You can find this in the cognito console:
- AppClients > ShowMore > AuthFlowsConfiguration
$ aws cognito-idp initiate-auth --client-id CLIENTID --auth-flow USER_PASSWORD_AUTH --auth-parameters USERNAME=me@example.com.me,PASSWORD="tempPassword"
$ aws cognito-idp admin-respond-to-auth-challenge --user-pool-id USERPOOLID --client-id CLIENTID --challenge-responses "NEW_PASSWORD=myPassword,USERNAME=me@example.com" --challenge-name NEW_PASSWORD_REQUIRED --session "YourLongSessionToken"