{"id":17624737,"url":"https://github.com/authorizerdev/authorizer-react","last_synced_at":"2026-03-06T00:32:17.711Z","repository":{"id":39918185,"uuid":"387171090","full_name":"authorizerdev/authorizer-react","owner":"authorizerdev","description":"React library for [authorizer.dev](https://authorizer.dev/)","archived":false,"fork":false,"pushed_at":"2024-10-15T12:18:49.000Z","size":4851,"stargazers_count":21,"open_issues_count":5,"forks_count":18,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-16T22:08:46.450Z","etag":null,"topics":["authorizer","hacktoberfest","react"],"latest_commit_sha":null,"homepage":"","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/authorizerdev.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-18T12:31:56.000Z","updated_at":"2024-10-15T12:18:53.000Z","dependencies_parsed_at":"2024-06-21T05:46:11.604Z","dependency_job_id":"f16bbaea-fa2d-4456-8746-5fa1c03413cf","html_url":"https://github.com/authorizerdev/authorizer-react","commit_stats":{"total_commits":195,"total_committers":9,"mean_commits":"21.666666666666668","dds":0.2666666666666667,"last_synced_commit":"6a39f3de73f8b019bf746bdd5d6daddf58420e1a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/authorizerdev/authorizer-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authorizerdev%2Fauthorizer-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authorizerdev%2Fauthorizer-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authorizerdev%2Fauthorizer-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authorizerdev%2Fauthorizer-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/authorizerdev","download_url":"https://codeload.github.com/authorizerdev/authorizer-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authorizerdev%2Fauthorizer-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30118934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["authorizer","hacktoberfest","react"],"created_at":"2024-10-22T22:05:15.856Z","updated_at":"2026-03-06T00:32:17.681Z","avatar_url":"https://github.com/authorizerdev.png","language":"TypeScript","readme":"# authorizer-react\n\nAuthorizer React SDK allows you to implement authentication in your [React](https://reactjs.org/) application quickly. It also allows you to access the user profile.\n\nHere is a quick guide on getting started with `@authorizerdev/authorizer-react` package.\n\n## Code Sandbox Demo: https://codesandbox.io/s/authorizer-demo-qgjpw\n\n## Step 1 - Create Instance\n\nGet Authorizer URL by instantiating [Authorizer instance](/deployment) and configuring it with necessary [environment variables](/core/env).\n\n## Step 2 - Install package\n\nInstall `@authorizerdev/authorizer-react` library\n\n```sh\nnpm i --save @authorizerdev/authorizer-react\nOR\nyarn add @authorizerdev/authorizer-react\n```\n\n## Step 3 - Configure Provider and use Authorizer Components\n\nAuthorizer comes with [react context](https://reactjs.org/docs/context.html) which serves as `Provider` component for the application\n\n```jsx\nimport {\n  AuthorizerProvider,\n  Authorizer,\n  useAuthorizer,\n} from '@authorizerdev/authorizer-react';\n\nconst App = () =\u003e {\n  return (\n    \u003cAuthorizerProvider\n      config={{\n        authorizerURL: 'http://localhost:8080',\n        redirectURL: window.location.origin,\n        clientID: 'YOUR_CLIENT_ID',\n      }}\n    \u003e\n      \u003cLoginSignup /\u003e\n      \u003cProfile /\u003e\n    \u003c/AuthorizerProvider\u003e\n  );\n};\n\nconst LoginSignup = () =\u003e {\n  return \u003cAuthorizer /\u003e;\n};\n\nconst Profile = () =\u003e {\n  const { user } = useAuthorizer();\n\n  if (user) {\n    return \u003cdiv\u003e{user.email}\u003c/div\u003e;\n  }\n\n  return null;\n};\n```\n\n## Commands\n\n### Local Development\n\nThe recommended workflow is to run authorizer in one terminal:\n\n```bash\nnpm start # or yarn start\n```\n\nThis builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.\n\nThen run either Storybook or the example playground:\n\n### Example\n\nThen run the example inside another:\n\n```bash\ncd example\nnpm i # or yarn to install dependencies\nnpm start # or yarn start\n```\n\nThe default example imports and live reloads whatever is in `/dist`, so if you are seeing an out of date component, make sure TSDX is running in watch mode like we recommend above. **No symlinking required**, we use [Parcel's aliasing](https://parceljs.org/module_resolution.html#aliases).\n\nTo do a one-off build, use `npm run build` or `yarn build`.\n\nTo run tests, use `npm test` or `yarn test`.\n\n## Configuration\n\nCode quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.\n\n### Storybook commands\n\n```bash\nnpm run storybook\n```\n\n```bash\nnpm run build-storybook\n```\n\n### Jest\n\nJest tests are set up to run with `npm test` or `yarn test`.\n\n### Bundle analysis\n\nCalculates the real cost of your library using [size-limit](https://github.com/ai/size-limit) with `npm run size` and visulize it with `npm run analyze`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthorizerdev%2Fauthorizer-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauthorizerdev%2Fauthorizer-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthorizerdev%2Fauthorizer-react/lists"}