The prerequisites for this recipe are as follows:
- A working AWS account
- The Node.js and npm installed on your machine
- Download the amazon-cognito-identity.min.js file
- Create an S3 bucket and upload the amazon-cognito-identity.min.js file
- Create a Cognito user pool and a client
We also need to complete the following setup before we follow the steps outlined in the How to do it... section: