Skip to content

Open-source · AGPL-3.0

Authentication you can read,
host, and ship.

authn.sh is an open-source authentication stack for B2B SaaS — sign-in, sessions, organizations, and webhooks — designed to be self-hosted in one command and embedded with a drop-in component.

Features

Open source, AGPL-3.0

Every line of authn — server, dashboard, SDKs, CLI — is on GitHub. Read it, audit it, fork it. No proprietary core.

Embeddable for React, Vue, Flutter

Drop-in <SignIn />, <SignUp />, and <UserButton /> components on the web; native flows on Flutter. One config, every framework.

Built for B2B SaaS

Organizations, memberships, invitations, roles, JWT templates, webhooks. The full B2B feature set — open and self-hostable.

How it works

Three steps from a fresh repo to authenticated users.

  1. Self-host

    Bring up the API, dashboard, and Postgres with a single docker compose file or a Helm chart.

  2. Drop in <SignIn />

    Install @authn-sh/react, mount one component, and you have email/password, OAuth, and sessions.

  3. Ship

    Verify session JWTs from your backend with a five-line SDK call. Webhook events stream out for the rest of your stack.

What's in v0.1

The shippable surface area for the first public release.

  • Self-host quickstart (docker compose) Shipped
  • React SDK with <SignIn /> Shipped
  • PHP / Laravel backend SDK Shipped
  • CLI for projects, environments, webhooks Shipped
  • Flutter SDK In progress
  • Java / Python / Ruby backend SDKs Planned
  • SAML SSO Planned