Authentication that feels warm, and stays secure.
An identity provider for your apps: passwords, social login, MFA and passkeys, with a developer console.
Everything sign-in needs
The pieces you would otherwise stitch together yourself.
OpenID Connect provider
Use ChaiAuth as the identity provider for your apps with Authorization Code + PKCE and standard discovery.
Passkeys (WebAuthn)
Passwordless sign-in with Touch ID, Windows Hello or a hardware key. Biometrics never leave the device.
Multi-factor auth
TOTP authenticator apps as a second factor, enforced at login.
Social login
Sign in with Google and GitHub. Failures bring users back to a clear error, never a broken page.
Developer console
Register applications, manage callback URLs, and rotate client secrets from one place.
Up and running in three steps
Create an app
Register it in the developer console and add your callback URLs.
Connect with OIDC
Point any OIDC library at our discovery URL with your client ID.
Let users in
Users sign in with any method and approve access on a consent screen.
Built on open standards
If your framework speaks OpenID Connect, it speaks ChaiAuth.
- Authorization Code flow with PKCE
- Standard discovery document
- Rotating client secrets
// next-auth provider
{
id: "chaiauth",
type: "oidc",
issuer: "https://auth.example.com",
clientId: process.env.CHAIAUTH_CLIENT_ID,
clientSecret: process.env.CHAIAUTH_CLIENT_SECRET,
checks: ["pkce", "state"],
}Frequently asked questions
Is ChaiAuth a replacement for NextAuth / Auth.js?
ChaiAuth is an identity provider. You can plug it into NextAuth (or any OIDC library) as a provider, or later use our SDK directly.
Which login methods are supported today?
Email + password, magic links, Google, GitHub, TOTP-based MFA and passkeys.
Can I self-host it?
The project is a monorepo (API + web) backed by PostgreSQL and Redis, so you can run it on your own infrastructure.
Is there an SDK?
Yes: @chaiauth/react gives you <SignIn />, <UserButton /> and hooks, built on standard OIDC with PKCE. Any other stack can use plain OpenID Connect.
Ready to get started?
Create a free account and register your first app in minutes.