A Chrome extension that integrates with WorkOS AuthKit for authentication management.
authkit-chrome-extension.mp4
- Manage AuthKit sessions within Chrome browser
- Monitor and automatically refresh authentication tokens
- View current session status in popup interface
- Log out from the extension popup
-
Clone this repository
-
Install dependencies:
pnpm install
-
Create a configuration file:
- Copy
config.example.json
toconfig.json
- Fill in your WorkOS credentials:
{ "apiKey": "your_workos_api_key", "clientId": "your_workos_client_id", "cookiePassword": "must be at least 32 characters long", "cookieDomain": "http://localhost:3000", "redirectUri": "http://localhost:3000/callback" }
- Copy
-
Build the extension:
pnpm build
- Open Chrome and go to
chrome://extensions
- Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked" button
- Select the
dist_chrome
folder from this project
This extension is designed to work with the 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.
For development with hot reloading:
pnpm dev