All Code can be found on my Github Repo:
https://github.com/nrao57/AWS-Cognito-Tutorials
Want to use AWS Cognito Services to manage registered users? In this video I will show you how to create a register page for your website using the AWS Cognito Javascript SDK.
AWS Cognito Javascript SDK Documentation
https://docs.aws.amazon.com/cognito/latest/developerguide/tutorial-integrating-user-pools-javascript.html#tutorial-integrating-user-pools-user-sign-in-javascript
https://github.com/aws-amplify/amplify-js/tree/master/packages/amazon-cognito-identity-js
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-idp-settings.html
Original source
15 responses to “AWS Cognito Javascript Tutorial: Register Page”
Thanks a lot – the official documentation is so poor. You did a great job – your examples are stright to the point – only a code confirmation is missing.
How can I use it in angular 6? Kindly guide me, please.
Hi Nikhil. Very nice tutorial.
I am getting NotAuthorizedException while testing your code with my Cognito details. In Response Headers getting "x-amzn-errormessage: Unable to verify secret hash for client xxxxxx"
I would really appreciate if you can guide me what exactly I am doing wrong.
Thanks in advance.
Thank you, it was a really good tutorial.
hi nikhil.i am getting an error when i register. It says amazon congnito.min.js and amazon.auth.min.js couldn't be loaded. It says failed to load resources
Hi Rao. I am trying to follow your tutorial. but I can't find amazon-cognito-auth.min.js and amazon-cognito-identity.min.js; my question is where did you get them? Thank you!
Hi Nikhil, good tutorial. I followed the same but I'm getting an error : {code: "NetworkError", name: "Error", message: "Network error"}. Please suggest some solutions.
Hi Rao. I am trying to follow your tutorial. but I can't find amazon-cognito-auth.min.js and amazon-cognito-identity.min.js; my question is where did you get them? thank you!
Thanks for the helpful tutorials! A quick note, in the source code line 33 on register.html is incorrect – and therefore no personal name is pushed to Cognito as the personalname variable ends up being undefined.
Nikhil, Your code saves my life.
The AWS official document fakes me to play with AWS Amplify which is a bottomless hole.
Hi Nikhil, Nice Video.
As you know this is HTML Javascript page which can be viewed from Page Source, so how we can provide security to credentials ?
Actually my requirement is to integrate API Gateway in Amazon Connect Stream API. So if you have information on that, Kindly share.
Thanks,
Gans
Well done, Nikhil. It really helped me to understand some fundamental settings.
Hi Nikhil.. How do I fetch the Name of the user? What is the function?
Could you please guide us to cognito create a user pool with lamda using javascript.
Hi sir, how to upload image. To the registered user and show it in the profile