This is a very simple react app to demonstrate OAuth 2.0 Authorization Code Flow by using AWS Amplify.
Create .env.local
for env variables;
- REACT_APP_USERPOOL_ID
- REACT_APP_USERPOOL_WEB_CLIENT_ID
- REACT_APP_AWS_REGION=
- REACT_APP_COGNITO_HOSTED_UI
- REACT_APP_API_GATEWAY_BASE_URL
- REACT_APP_COGNITO_DOMAIN
npm run start