Have you ever been interested in adding user authentication information to a React application using AWS Cognito ? This post demostrates how to display this information using the AWS Cognito service bundled with AWS Amplify
AWS Cognito and Amplify
AWS Amplify provides the ability to build a full stack web application using JWT authentication with OAuth using an AWS Cognito User Pool. Once you have created a basic application using AWS amplify, enter the following code to retrieve authentication information
Available Parameters
The Cognito Auth API returns a number of parameters, that can be used for display in a React application, or even used as a key in a Dynamo database
Cognito User Pool
A summary of the user pool can be seen by clicking on the user pool from the link below. Ensure you set the right region to see the correct application. The console shows the number of users, and provides the ability to import / create users manually, add users to group, reset their password, enable SMS Multi Factor Authentication. This system also provides the ability to disable a user
Comments
Post a Comment