{"id":18488248,"url":"https://github.com/bjerkio/oidc-react","last_synced_at":"2025-04-13T16:45:07.288Z","repository":{"id":37826729,"uuid":"254325246","full_name":"bjerkio/oidc-react","owner":"bjerkio","description":"React component to provide OpenID Connect and OAuth2 protocol support. 🌳","archived":false,"fork":false,"pushed_at":"2025-04-01T13:06:34.000Z","size":2781,"stargazers_count":335,"open_issues_count":19,"forks_count":69,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-04T23:08:54.229Z","etag":null,"topics":["library","oidc-client-js","package","react","sdk"],"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/bjerkio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2020-04-09T09:17:41.000Z","updated_at":"2025-03-31T06:47:32.000Z","dependencies_parsed_at":"2024-02-24T17:27:12.991Z","dependency_job_id":"fb862413-8d34-41d2-a7ff-76e2cb01f857","html_url":"https://github.com/bjerkio/oidc-react","commit_stats":{"total_commits":675,"total_committers":31,"mean_commits":"21.774193548387096","dds":"0.28888888888888886","last_synced_commit":"35626db67166d3f5361024cd896e55c7a1ddbef1"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjerkio%2Foidc-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjerkio%2Foidc-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjerkio%2Foidc-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjerkio%2Foidc-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjerkio","download_url":"https://codeload.github.com/bjerkio/oidc-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248748480,"owners_count":21155638,"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":["library","oidc-client-js","package","react","sdk"],"created_at":"2024-11-06T12:51:28.975Z","updated_at":"2025-04-13T16:45:07.256Z","avatar_url":"https://github.com/bjerkio.png","language":"TypeScript","readme":"# OIDC React\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![code style: airbnb](https://img.shields.io/badge/eslint-airbnb-ff5a5f.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n[![codecov](https://codecov.io/gh/bjerkio/oidc-react/branch/master/graph/badge.svg)](https://codecov.io/gh/bjerkio/oidc-react)\n\n![oidc-react logo](assets/logo.jpg)\n\n## About\n\nReact component (AuthProvider) to provide OpenID Connect and OAuth2 protocol\nsupport. Has [hooks](guides/HOOKS.md) 🎉\n\nBased on [oidc-client-ts](https://github.com/authts/oidc-client-ts).\n\n## Quickstart\n\nInstall packages by running:\n\n```shell\n$ npm install oidc-react\n```\n\n## Usage\n\n```tsx\nimport { AuthProvider } from 'oidc-react';\n\nconst oidcConfig = {\n  onSignIn: () =\u003e {\n    // Redirect?\n  },\n  authority: 'https://oidc.io/oauth',\n  clientId: 'this-is-a-client-id',\n  redirectUri: 'https://my-app.com/',\n};\n\nconst Routes = () =\u003e (\n  \u003cAuthProvider {...oidcConfig}\u003e\n    \u003cSwitch\u003e\n      \u003cRoute exact path=\"/\"\u003e\n        \u003cDashboard /\u003e\n      \u003c/Route\u003e\n      ...\n    \u003c/Switch\u003e\n  \u003c/AuthProvider\u003e\n);\n```\n\n# Documentation\n\nApart from this README, you can find details and examples of using the SDK in\nthe following places:\n\n- [SDK Documentation](docs/README.md)\n- [Guides](guides/)\n- [Example repository](https://github.com/simenandre/example-oidc-react)\n- [oidc-client-ts Documentation](https://authts.github.io/oidc-client-ts/)\n\n## Contribute \u0026 Disclaimer\n\nWe love to get help 🙏 Read more about how to get started in\n[CONTRIBUTING](CONTRIBUTING.md) 🌳\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjerkio%2Foidc-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjerkio%2Foidc-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjerkio%2Foidc-react/lists"}