We will use CodePen to execute the JavaScript SDK code for Cognito operations, following these steps:
- Open CodePen and add locations to the required files.
- Go to https://codepen.io/.
- Click the Create tab and then select the Pen option.
- In the new window, click the Settings menu, select the Behaviour tab, and uncheck the Enabled option under Auto-Updating Preview.
- In the Settings menu, select the JavaScript tab and do the following:
- Search for aws sdk and select the appropriate SDK:
CodePen will populate the SDK URL (as we will see in the next screenshot).
- Add the URL of our amazon-cognito-identity.min.js file (for example, ...