In this video I am going to show you how to implement AWS Cognito login and registration in React JS. This is an essential use case whenever you are using AWS Cognito together with React to build a web application.
The video will show you step by step how to create the necessary infrastructure as well, so we're going to deploy a Cognito User Pool (with App Client), a CloudFront distibution with an S3 origin using AWS SAM. After the infrastructure is deployed we implement the login and registration and then add some additional fields like family_name, given_name and email.
After this is done we're adding the code to retrieve the JWT token and display it. Finally we build and upload the static website to the S3 bucket which serves as the origin for the CDN (CloudFront Distribution).
The full code can be found in this GitHub repo: https://github.com/majestic-cloud/rea...
Also if you are curious how to create a Cognito User Pool manually using the
AWS Console and use the JWT token to secure an API Gateway then you can watch my video on that: • Secure the AWS API Gateway with Cognito Us...
If you liked this video please click on the like button! There's a new video on Majestic.cloud once a week so if you want to stay updated and don't want to miss any new videos then please subscribe to the channel!
Visit the site: https://majestic.cloud
Follow me on Twitter:
/ lacisoft (László)
/ cloud_majestic (Majestic.cloud)
Follow on Facebook: / majesticcloudcomputing