Authkit
The world's best login box powered by WorkOS and Radix.
Install / Use
/learn @workos/AuthkitREADME
Examples
There are two ways to use AuthKit and this repository contains examples for both:
- Using AuthKit's hosted UI
This is the fastest way to add authentication to your app with AuthKit and WorkOS User Management. It includes a fully themeable hosted UI that handles all of your authentication flows. When you're ready to go to production you can point it to a custom domain (
auth.yourapp.com) to match your application. - Using your own custom UI Use all of the features of AuthKit, but build out the UI yourself in your own codebase by integrating directly with the headless WorkOS User Management APIs. Your authentication UI will be self-hosted in your application.
Prerequisites
You will need a WorkOS account.
Running the example
-
Install dependencies with
npm installoryarn install -
Set up your Environment variables by signing into your WorkOS dashboard, navigate to API Keys and copy the Client ID and the Secret Key (API Key). Rename the
.env.local.examplefile to.env.localand supply your Client ID and Secret Key.WORKOS_CLIENT_ID="<your Client ID>" WORKOS_API_KEY="<your Secret Key>" -
Configure redirects in your WorkOS dashboard, navigate to Redirects and add the following urls:
http://localhost:3000/using-your-own-ui/sign-in/google-oauth/callbackhttp://localhost:3000/using-your-own-ui/sign-in/microsoft-oauth/callbackhttp://localhost:3000/using-your-own-ui/sign-in/github-oauth/callbackhttp://localhost:3000/using-your-own-ui/sign-in/sso/callbackhttp://localhost:3000/using-hosted-authkit/basic/callbackhttp://localhost:3000/using-hosted-authkit/with-session/callbackhttp://localhost:3000/using-hosted-authkit/with-nextjs/callback -
Run the example with
npm run devoryarn devand navigate to http://localhost:3000
Related Skills
node-connect
334.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
334.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.3kCommit, push, and open a PR
