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.
How it fits in your stack
Section titled “How it fits in your stack”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 logicCustomers 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.
Key components
Section titled “Key components”| Component | What it is |
|---|---|
| SpartanAuth API | The authentication server — gRPC + HTTP REST gateway |
| Dashboard | Web UI for managing sectors, users, and settings |
| Login Widget | npm package of web components for your frontend |
Who manages what
Section titled “Who manages what”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
Sectors
Section titled “Sectors”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.