cognito_getcreds.html - AWS Code Sample


<!-- Copyright, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3), which is pending release. The preview version of the SDK is available at This example is in the 'AWS SDK for JavaScript v3 Developer Guide' at Purpose: This is the front-end browser page for running cognito_getcreds.js, which retrieves an Amazon Cognito ID. Running the code: See --> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Amazon Cognito credentials example</title> <meta charset="utf-8" /> <script src="./main.ts"></script> <script> showId(); </script> </head> <body onload="showId();"> <div id="results">data</div> </body> </html>