AWS Cognito example for registration and login flow. Example contains Node.js and React App in NX monorepo.
Set AWS account
NX_REGION=<AWS region>
NX_USER_POOL_ID=<AWS user pool id>
NX_USER_POOL_CLIENT_ID=<AWS user pool client id>
JWKS=<AWS JWKS>
curl https://cognito-idp.<AWS region>.amazonaws.com/<AWS user pool id>/.well-known/jwks.json
yarn install
yarn dev:backend
yarn dev:frontend
yarn deploy