Skip to content

Authentication for your app, from sign-in to organizations

Zautha gives your users sign-in, accounts and organizations: ready-made components, a hosted login page and standard OIDC, with an API and SDKs for your server. Hosted in the EU.

Add it to a Next.js app

Install the SDK, put your keys in .env.local, then protect routes and read the signed-in user on the server.

Terminal window
npm i @zautha/nextjs @zautha/ui
proxy.ts
import { createRouteMatcher, zauthaProxy } from "@zautha/nextjs/server";
const isProtected = createRouteMatcher(["/dashboard(.*)"]);
export default zauthaProxy(async (auth, req) => {
if (isProtected(req)) await auth.protect();
});
export const config = { matcher: ["/((?!_next/static|_next/image|favicon.ico).*)"] };
app/dashboard/page.tsx
import { Suspense } from "react";
import { currentUser } from "@zautha/nextjs/server";
async function SignedInAs() {
const user = await currentUser();
return <p>Signed in as {user?.primary_email_address}</p>;
}
export default function Dashboard() {
return (
<Suspense>
<SignedInAs />
</Suspense>
);
}

What it does

Passwords

Hashed with Argon2id, checked against known breaches, with lockout after repeated failures.

Read more

Email codes and links

Sign in or verify an address with a one-time code or a sign-in link.

Read more

Passkeys

Sign in with a passkey, or use one as a second factor.

Read more

Authenticator apps

Time-based one-time codes (TOTP) as a second factor, with backup codes.

Read more

Social sign-in

Google, GitHub, Microsoft, Discord, GitLab and Apple.

Read more

Organizations

Organizations with roles, custom permissions and invitations.

Read more

Webhooks

Signed events for users, sessions and organizations, retried when your server fails.

Read more

Audit log

Changes made in the dashboard or with a secret key are recorded: who, what and when.

Read more

Impersonation

Pro

Sign in as a user to see what they see. Every impersonation is recorded.

Read more

Sign-up restrictions

Allow or block sign-ups by email address or domain.

Read more

Custom domains

Serve sign-in from your own domain, so its cookies are your site's.

Read more

OIDC

A standard OpenID Connect provider for any app or tool that speaks it.

Read more

Ready-made components

Sign-in, sign-up, user and organization components for React, Next.js and JavaScript, and a hosted login page.

Read more

MFA, passkeys and breach checks are included on every plan, free included. First-class .NET: an ASP.NET Core SDK and quickstart next to the JavaScript ones.

Hosted in Europe

Zautha runs on a single server at Hetzner in Germany. Your users' data is stored there, and backups are encrypted before they leave the server.

Free to start

The Free plan has 3 applications with 50,000 monthly retained users each. Pro is $25 a month with 100,000 monthly retained users per application included. See pricing