workos/authkit
workos/authkit has 3,360 GitHub stars and 171 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 17:48 UTC. Last push 2026-09-10.
The world's best login box powered by WorkOS and Radix.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
AuthKit
How to use AuthKit's hosted UI or build your own frontend with the headless User Management APIs
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 installSet 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/callbackRun the example with
npm run devand navigate to http://localhost:3000
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,800 starspublic-apis/public-apis
A collective list of free APIs
497,028 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,107 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,147 stars