We saw Cognito operations with AWS CLI commands in Chapter 4, Application Security with Amazon Cognito. With web applications, Cognito is generally used with the JavaScript SDK from the frontend. Hence, we will see various uses of Cognito using the JavaScript SDK and then test it using CodePen. We may use CodePen or any other tool, or use it within our application (for example, an Angular app) and then test it.
Implementing and testing Cognito operations with the JavaScript SDK
Getting ready
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...