Back to rankings

workos/authkit

TypeScriptauthkit.com

The world's best login box powered by WorkOS and Radix.

authauthenticationauthentication-backendauthentication-middlewareauthnmagic-codeoauth2passwordless-authenticationradix-uisso-authenticationuser-management
Star Growth
Stars
3.3k
Forks
162
Weekly Growth
Issues
20
1.5k2k2.5k3k
Nov 2023Sep 2024Aug 2025Jul 2026
Artifactsnpmnpm install authkit
README

AuthKit

How to use AuthKit's hosted UI or build your own frontend with the headless User Management APIs

Explore the docs ↗

Screenshot of hosted UI AuthKit in light mode

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

  1. Install dependencies with npm install or yarn install

  2. 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.example file to .env.local and supply your Client ID and Secret Key.

    WORKOS_CLIENT_ID="<your Client ID>"
    WORKOS_API_KEY="<your Secret Key>"
    
  3. 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/callback
    
    http://localhost:3000/using-your-own-ui/sign-in/microsoft-oauth/callback
    
    http://localhost:3000/using-your-own-ui/sign-in/github-oauth/callback
    
    http://localhost:3000/using-your-own-ui/sign-in/sso/callback
    
    http://localhost:3000/using-hosted-authkit/basic/callback
    
    http://localhost:3000/using-hosted-authkit/with-session/callback
    
    http://localhost:3000/using-hosted-authkit/with-nextjs/callback
    
  4. Run the example with npm run dev or yarn dev and navigate to http://localhost:3000

Related repositories
supabase/supabase

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

TypeScriptnpmApache License 2.0firebasesupabase
supabase.com
106.8k13.2k
nextauthjs/next-auth

Authentication for the Web.

TypeScriptnpmISC Licensenodejsnextjs
authjs.dev
28.3k4k
apache/casbin

Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC.

GoGo ModulesApache License 2.0casbinaccess-control
casbin.apache.org
20.3k1.8k
casbin/casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Golang: https://discord.gg/S5UjpzGZjN

GoGo ModulesApache License 2.0casbinaccess-control
casbin.org
18.3k1.7k
casdoor/casdoor

An open-source Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD

GoGo ModulesApache License 2.0oidcsso
casdoor.ai
14k1.7k
microg/GmsCore

Free implementation of Play Services

JavaMavenApache License 2.0javaandroid
microg.org
14k3k
invertase/react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.

TypeScriptnpmOtherfirebaseanalytics
rnfirebase.io
12.3k2.3k
lucia-auth/lucia

Authentication, simple and clean

BSD Zero Clause Licenseoauthtypescript
lucia-auth.com
10.5k518
golang-jwt/jwt

Go implementation of JSON Web Tokens (JWT).

GoGo ModulesMIT Licensegogolang
golang-jwt.github.io/jwt/
9.2k440
stack-auth/stack-auth

Open-source Auth0/Clerk alternative

TypeScriptnpmOtherauthauthentication
stack-auth.com
5.3k348
stack-auth/stack

Open-source Auth0/Clerk alternative

TypeScriptnpmauthauthentication
stack-auth.com
4.5k297
brocoders/nestjs-boilerplate

NestJS boilerplate. Auth, TypeORM, Mongoose, Postgres, MongoDB, Mailing, I18N, Docker.

TypeScriptnpmMIT Licenseswaggerdatabase
nestjs-boilerplate-test.herokuapp.com/docs
4.3k947