{"id":20307302,"url":"https://github.com/oktadev/okta-react-styled-components-example","last_synced_at":"2025-06-28T09:36:30.900Z","repository":{"id":103824385,"uuid":"244924310","full_name":"oktadev/okta-react-styled-components-example","owner":"oktadev","description":"React Styled Components Example","archived":false,"fork":false,"pushed_at":"2020-05-06T20:50:23.000Z","size":408,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T15:14:16.233Z","etag":null,"topics":["css","javascript","reactjs","styled-components"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2020/03/16/react-styled-components","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oktadev.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,"zenodo":null}},"created_at":"2020-03-04T14:40:28.000Z","updated_at":"2022-10-29T01:14:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e6907aa-04f5-4125-8706-015d49c2cc67","html_url":"https://github.com/oktadev/okta-react-styled-components-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-react-styled-components-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-styled-components-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-styled-components-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-styled-components-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-styled-components-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-react-styled-components-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-styled-components-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262406963,"owners_count":23306287,"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":["css","javascript","reactjs","styled-components"],"created_at":"2024-11-14T17:17:09.130Z","updated_at":"2025-06-28T09:36:30.886Z","avatar_url":"https://github.com/oktadev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Styled Components Example\n \nThis example app shows how to create a React app and use Styled Components for its CSS.\n\nPlease read [Build a React App with Styled Components](https://developer.okta.com/blog/2020/03/16/react-styled-components) to see how this app was created.\n\n**Prerequisites:** \n\n* [Node 12+](https://nodejs.org/en/) installed\n* An [Okta Developer Account](https://developer.okta.com/signup)\n\n\u003e [Okta](https://developer.okta.com/) has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage and secure users and roles in any application.\n\n* [Getting Started](#getting-started)\n* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-react-styled-components-example.git\ncd okta-react-styled-components-example\nnpm install\n```\n\n### Create an OIDC App on Okta\n\nRegister a new application by going to **Applications** \u003e **Add Application**. On the next screen, choose **Single Page App** and click **Next**.\n\nOn the following screen, you can edit the application's settings. Make sure that the port number is 3000 and the base URI is `http://localhost:3000/`. Change the Login Redirect URI to `http://localhost:3000/callback`. Once you are done, you will see a **Client ID**.\n\n### Configure your Okta Settings\n\nCopy your Okta domain and client ID into `src/App.js`:\n\n```js\nfunction App() {\n  return (\n      \u003cRouter\u003e\n        \u003cSecurity issuer='https://{YourOktaDomain}/oauth2/default'\n                  clientId='{ClientId}'\n                  redirectUri={window.location.origin + '/callback'}\n               pkce={true}\u003e\n          \u003cSecureRoute path='/' exact={true} component={Calendar}/\u003e\n          \u003cRoute path='/callback' component={LoginCallback}/\u003e\n        \u003c/Security\u003e\n      \u003c/Router\u003e\n  );\n}\n```\n\nStart everything with `npm start` and you'll be able to login with React and Okta!\n\n## Links\n\nThis example uses the following open source libraries:\n\n* [React](https://reactjs.org/)\n* [Styled Components](https://styled-components.com/)\n* [Okta React SDK](https://github.com/okta/okta-oidc-js/tree/master/packages/okta-react)\n\n## Help\n\nPlease post any questions as issues in this repository, or visit our [Okta Developer Forums](https://devforum.okta.com/).\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-react-styled-components-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-react-styled-components-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-react-styled-components-example/lists"}