{"id":28569859,"url":"https://github.com/workos/react-router-authkit-example","last_synced_at":"2025-09-15T03:03:52.072Z","repository":{"id":285817973,"uuid":"946250096","full_name":"workos/react-router-authkit-example","owner":"workos","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-15T15:23:31.000Z","size":502,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-02T23:27:41.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/workos.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":"2025-03-10T21:07:26.000Z","updated_at":"2025-05-10T09:34:50.000Z","dependencies_parsed_at":"2025-04-02T21:01:29.657Z","dependency_job_id":null,"html_url":"https://github.com/workos/react-router-authkit-example","commit_stats":null,"previous_names":["workos/react-router-authkit-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Freact-router-authkit-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Freact-router-authkit-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Freact-router-authkit-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Freact-router-authkit-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workos","download_url":"https://codeload.github.com/workos/react-router-authkit-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Freact-router-authkit-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259118819,"owners_count":22808062,"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":[],"created_at":"2025-06-10T17:39:24.881Z","updated_at":"2025-09-15T03:03:52.057Z","avatar_url":"https://github.com/workos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Router integration example using AuthKit\n\nAn example application demonstrating how to authenticate users with AuthKit and the authkit-react-router helper library.\n\n\u003e Refer to the [User Management](https://workos.com/docs/user-management) documentation for reference.\n\n## Prerequisites\n\nYou will need a [WorkOS account](https://dashboard.workos.com/signup).\n\n## Requirements\n\nNode v18 or higher\n\n## Running the example\n\nRename the `.env.example` file to `.env` and supply your Client ID and API key as environment variables. The client ID and API key can be found in the [WorkOS dashboard](https://dashboard.workos.com/), and the redirect URI can also be configured there.\n\n```sh\nWORKOS_CLIENT_ID=client_... # retrieved from the WorkOS dashboard\nWORKOS_API_KEY=sk_test_... # retrieved from the WorkOS dashboard\nWORKOS_REDIRECT_URI=http://localhost:5173/callback # configured in the WorkOS dashboard\nWORKOS_COOKIE_PASSWORD=\u003cyour password\u003e # generate a secure password here\n```\n\n`WORKOS_COOKIE_PASSWORD` is the private key used to encrypt the session cookie. It has to be at least 32 characters long. You can use the [1Password generator](https://1password.com/password-generator/) or the `openssl` library to generate a strong password via the command line:\n\n```\nopenssl rand -base64 24\n```\n\nInstall the dependencies\n\n```bash\nnpm install\n```\n\nRun the following command and navigate to [http://localhost:5173](http://localhost:5173).\n\n```bash\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Freact-router-authkit-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkos%2Freact-router-authkit-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Freact-router-authkit-example/lists"}