Multi-tenant & Scalable
Built-in multi-tenancy support with data isolation, custom branding, and domain management for each tenant.
Multi-tenant, scalable, built on modern standards. Support for any JavaScript runtime.
Get up and running with AuthHero in minutes:
npm create authhero@latest my-auth-app
cd my-auth-app
npm run dev
yarn create authhero my-auth-app
cd my-auth-app
yarn dev
pnpm create authhero my-auth-app
cd my-auth-app
pnpm dev
import { Hono } from "hono";
import { createAuthHero } from "authhero";
const app = new Hono();
// Initialize AuthHero
const auth = createAuthHero({
database: adapter,
tenant: "your-tenant",
});
// Add authentication middleware
app.use("*", auth.middleware);
// Protect routes
app.get("/dashboard", auth.requireAuth(), (c) => {
const user = c.get("user");
return c.json({ message: `Hello ${user.email}!` });
});
export default app;
AuthHero combines the best of modern authentication with enterprise-grade features:
AuthHero is built as a modular system:
Learn more about the architecture →