AWS-Cognito: Setup signup feature for a App and host it in EC2-x86
courtsey — https://www.youtube.com/watch?v=EaDMG4amEfk
https://github.com/jspruance/aws-cognito-tutorial-complete
https://stackoverflow.com/questions/47371904/e-unable-to-locate-package-npm
Step 0: Setup env for JS.
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
npm i
sudo npm audit fix(optional)
npm i aws-amplify
step 1: Create a user pool.
get : Pool Id data00
step 2: Register an App client.
get : App client id
Step 3 : domain Name:
Add Amazon Cognito domain.
Step 4(optional): App Client Settings
add Callback URL(s) and Sign out URL(s)
Step 5: get the code from https://github.com/jspruance/aws-cognito-tutorial-complete
navigate to the cod foler
run: npm run start
Other info:
Client ID → User pool ID
- Pool Id data0
Client Secret → client ID
App client id: data1
App client secret: data2
Authorise Endpoint → /oauth2/authorize
Acess token Endpoint → /oauth2/token
Get user info endpoint → /oauth2/userInfo
Callback URL(s) : https://homepage.com
Sign out URL(s) : https://homepage.com