{"id":13539996,"url":"https://github.com/dbroadhurst/aws-cognito-react","last_synced_at":"2025-04-05T08:03:44.403Z","repository":{"id":38858455,"uuid":"100966547","full_name":"dbroadhurst/aws-cognito-react","owner":"dbroadhurst","description":"AWS Cognito React boilerplate / reference implementation","archived":false,"fork":false,"pushed_at":"2023-03-05T16:52:02.000Z","size":8870,"stargazers_count":332,"open_issues_count":14,"forks_count":104,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T07:08:58.037Z","etag":null,"topics":["account","aws","cognito","react","redux","sagas","users"],"latest_commit_sha":null,"homepage":"http://aws-cognito-react.s3-website-us-west-2.amazonaws.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbroadhurst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-21T15:30:22.000Z","updated_at":"2025-03-06T05:52:13.000Z","dependencies_parsed_at":"2024-01-14T09:00:31.751Z","dependency_job_id":null,"html_url":"https://github.com/dbroadhurst/aws-cognito-react","commit_stats":{"total_commits":111,"total_committers":3,"mean_commits":37.0,"dds":"0.14414414414414412","last_synced_commit":"ae35a36c35a1ac5d7233562bcab67363b55e1b51"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbroadhurst%2Faws-cognito-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbroadhurst%2Faws-cognito-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbroadhurst%2Faws-cognito-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbroadhurst%2Faws-cognito-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbroadhurst","download_url":"https://codeload.github.com/dbroadhurst/aws-cognito-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305930,"owners_count":20917207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["account","aws","cognito","react","redux","sagas","users"],"created_at":"2024-08-01T09:01:36.952Z","updated_at":"2025-04-05T08:03:44.380Z","avatar_url":"https://github.com/dbroadhurst.png","language":"TypeScript","readme":"# aws-cognito-react - v2\n\n![signin](./logo.png)\n\nIf you are looking for v1 version it can be found on the legacy branch. With the release of v2, v1 is no longer supported\n\nReference implementation / boilerplate for AWS Cognito user management\n\n## Demo\n\n[aws-cognito-react-demo](http://aws-cognito-react.s3-website-us-west-2.amazonaws.com/)\n\n## v2 Changes\n\n- Switched to Typescript\n- Replaced redux and saga's with react context\n- Upgraded all libraries to latest major versions\n- No security scan issues\n- Hooks used to manage states\n- Updated to Material UI 4x\n- Added AWS CDK to manage infrastructure\n- Cleaner and simpler Architecture\n- Responsive design\n\n## AWS Cognito Infrastructure setup\n\nTo help deploy the AWS Cognito infrastructure I've create an Amazon Cloud Development (CDK) script\n\nCDK set up instructions can be found [here](https://docs.aws.amazon.com/cdk/latest/guide/cli.html)\n\nCDK deploy instructions\n\n```bash\ncd cdk\nnpm run cdk bootstrap   # only needed first time\nnpm run cdk deploy\n```\n\nAfter deployment copy the userPoolId and userPoolClientId values from the command line window; you will need these values in the app config step\n\n## App Configuration\n\nSetup the Cognito environment values buy creating app/.env.local file and adding the following\n\n```bash\nREACT_APP_USERPOOL_ID=YOUR_USER_POOL_ID\nREACT_APP_CLIENT_ID=YOUR_CLIENT_ID\n```\n\nCreate React App has been used to setup the development process so the next steps should be familiar\n\n```bash\ncd app\nnpm install\nnpm start\n```\n\n## Other Solutions\n\n[Firebase Auth](https://firebase.google.com/products/auth?gclid=Cj0KCQiAtqL-BRC0ARIsAF4K3WFgWD7NC4y4eJfdGZg68t4ovEoqpGrqWWk2kj1_htu5e2844DCBKVoaAhl_EALw_wcB) - Great for mobile and web. Fairly limited but easy to use. Integrates really nicely with other Firebase services\n\n[Auth0](https://auth0.com/) - Comes with comprehensive and feature rich frontend. Seems to quicky get expensive but a very safe option\n\n[Keycloak](https://www.keycloak.org/) - Excellent feature rich Enterprise service that offers fully themable frontend. No Cloud solution but easy to deploy to AWS using [this](https://github.com/dbroadhurst/aws-cdk-fargate-keycloak) CDK script\n\n## Useful References\n\n\u003chttps://www.npmjs.com/package/amazon-cognito-identity-js\u003e\n\n\u003chttps://docs.aws.amazon.com/cdk/api/latest/docs/aws-cognito-readme.html\u003e\n\n\u003chttps://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html\u003e\n\n\u003chttps://docs.aws.amazon.com/cdk/latest/guide/getting_started.html\u003e\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbroadhurst%2Faws-cognito-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbroadhurst%2Faws-cognito-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbroadhurst%2Faws-cognito-react/lists"}