Skip to content

thiagozf/cognito-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cognito minimal example

  1. Deploy the CloudFormation stack, here YOUR_STACK is the stack's name.
aws cloudformation deploy --template-file cf.yml --stack-name YOUR_STACK --capabilities CAPABILITY_IAM
  1. Go to the AWS Console and setup a domain for the hosted UI.

  2. Configure the app variables on .env with the CloudFormation's output.

aws cloudformation describe-stacks --stack-name YOUR_STACK
  1. Create a test user
aws cognito-idp sign-up \
  --region YOUR_COGNITO_REGION \
  --client-id YOUR_COGNITO_APP_CLIENT_ID \
  --username admin@example.com \
  --password Passw0rd!
  1. Validate test user
aws cognito-idp admin-confirm-sign-up \
  --region YOUR_COGNITO_REGION \
  --user-pool-id YOUR_COGNITO_USER_POOL_ID \
  --username admin@example.com
  1. Install dependencies
yarn
  1. Run the app.
yarn start
  1. Sign in with Cognito!

About

Cognito setup for React apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published