Skip to content

What is SpartanAuth?

SpartanAuth is an authentication microservice that handles the hard parts of auth — passkeys, MFA, magic links, social login, login widget, user management — so your application doesn’t have to.

The guiding principle is Spartan simplicity: the correct, secure way to implement authentication should also be the easiest way.

Your frontend
│
▼
<spartan-login> widget ← npm package, any framework
│ (issues JWT on success)
▼
SpartanAuth API ← hosted at api.spartanauth.com
▼
Your backend ← verifies tokens via introspection
│
▼
Your database / business logic

Customers authenticate through the login widget. On success, the widget issues a signed JWT that your backend verifies with a single HTTP call to SpartanAuth’s introspection endpoint. Your backend never needs to store passwords, manage MFA secrets, or handle WebAuthn ceremonies.

ComponentWhat it is
SpartanAuth APIThe authentication server — gRPC + HTTP REST gateway
DashboardWeb UI for managing sectors, users, and settings
Login Widgetnpm package of web components for your frontend

SpartanAuth manages:

  • Password hashing and storage
  • WebAuthn (passkey) registration and ceremony handling
  • Email codes and magic links
  • Authenticator-app codes (TOTP) and one-time recovery codes
  • JWT signing keys
  • OAuth / social login flows

SMS codes are not offered.

You manage:

  • Your application’s business data and users’ roles/permissions
  • An app sector per application, separate from the tenant root
  • Whether self-sign-up is allowed on that app sector
  • OAuth provider credentials (Google, GitHub, Apple) on that app sector

Every application in SpartanAuth lives in a sector — an isolated namespace with its own users, security settings, and configuration.

Signup gives you a tenant root (the root tenant): one organization, one permanent dashboard slug, one Sector ID for administration. Create an app sector for each app. The dashboard calls that button New sub-sector. Copy the app sector’s ID into the login widget sector attribute. The Sector ID from signup is the tenant root; leave it out of the widget. See Tenant root and app sectors.