{"id":28569861,"url":"https://github.com/workos/authkit-chrome-extension-example","last_synced_at":"2025-06-30T11:37:50.462Z","repository":{"id":289922356,"uuid":"972761533","full_name":"workos/authkit-chrome-extension-example","owner":"workos","description":"An example of using AuthKit in a Chrome example, sharing the session with the app.","archived":false,"fork":false,"pushed_at":"2025-06-12T14:47:35.000Z","size":297,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-28T07:46:41.352Z","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,"zenodo":null}},"created_at":"2025-04-25T16:06:44.000Z","updated_at":"2025-04-25T19:13:33.000Z","dependencies_parsed_at":"2025-04-25T19:38:15.051Z","dependency_job_id":"a06b824c-2f44-4f79-9265-8e51a8904e21","html_url":"https://github.com/workos/authkit-chrome-extension-example","commit_stats":null,"previous_names":["workos/authkit-chrome-extension-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/workos/authkit-chrome-extension-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fauthkit-chrome-extension-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fauthkit-chrome-extension-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fauthkit-chrome-extension-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fauthkit-chrome-extension-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workos","download_url":"https://codeload.github.com/workos/authkit-chrome-extension-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fauthkit-chrome-extension-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262766414,"owners_count":23361100,"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:27.153Z","updated_at":"2025-06-30T11:37:50.415Z","avatar_url":"https://github.com/workos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AuthKit Chrome Extension Example\n\nA Chrome extension that integrates with WorkOS AuthKit for authentication management.\n\n\n\nhttps://github.com/user-attachments/assets/e7b90729-a200-4743-9a9f-1294ebb2e698\n\n\n\n## Features\n\n- Manage AuthKit sessions within Chrome browser\n- Monitor and automatically refresh authentication tokens\n- View current session status in popup interface\n- Log out from the extension popup\n\n## Setup Instructions\n\n1. Clone this repository\n2. Install dependencies:\n   ```bash\n   pnpm install\n   ```\n\n3. Create a configuration file:\n   - Copy `config.example.json` to `config.json`\n   - Fill in your WorkOS credentials:\n     ```json\n     {\n       \"apiKey\": \"your_workos_api_key\",\n       \"clientId\": \"your_workos_client_id\",\n       \"cookiePassword\": \"must be at least 32 characters long\",\n       \"cookieDomain\": \"http://localhost:3000\",\n       \"redirectUri\": \"http://localhost:3000/callback\"\n     }\n     ```\n\n4. Build the extension:\n   ```\n   pnpm build\n   ```\n\n## Loading the Extension in Chrome\n\n1. Open Chrome and go to `chrome://extensions`\n2. Enable \"Developer mode\" (toggle in top-right corner)\n3. Click \"Load unpacked\" button\n4. Select the `dist_chrome` folder from this project\n\n## Usage with AuthKit Example App\n\nThis extension is designed to work with the [next-authkit-example](https://github.com/workos/next-authkit-example) application as an example AuthKit app. You'll need to run both this extension and the next-authkit-example app together for full functionality. The extension will manage the AuthKit sessions created by the example app.\n\n## Development\n\nFor development with hot reloading:\n\n```\npnpm dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fauthkit-chrome-extension-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkos%2Fauthkit-chrome-extension-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fauthkit-chrome-extension-example/lists"}