A lightweight, self-hosted OpenID Connect provider for modern applications.
TinyAuth is a self-hosted OpenID Connect (OIDC) provider that gives your apps a standards-based login system without bringing in a full identity platform.
It supports OAuth2/OIDC authorization code flows, PKCE, password login, passkeys, TOTP, social login, and a customizable multilingual frontend. Run it as a standalone server, ship it with Docker, or embed the server package in your own Node.js application.
- OIDC/OAuth2 provider with authorization code flow, PKCE, discovery, token, userinfo, introspection, and revocation endpoints
- Multiple sign-in methods including password, passkeys/WebAuthn, GitHub, Google, Apple, and generic OAuth/OIDC providers
- Two-factor authentication with TOTP and passkey-based second factors
- Config-driven deployment through a single YAML file
- Customizable frontend with themes, branding, background images, language selection, and terms flows
- Database support for SQLite and PostgreSQL
- Standalone or embedded usage through Docker, the standalone CLI, or
@tinyrack/tinyauth-server
docker run --rm \
-p 8080:8080 \
-v ./config.yaml:/opt/config.yaml \
ghcr.io/tinyrack-net/tinyauth:latestnpm install -g @tinyrack/tinyauth-standalonetinyauth serve --config-path ./config.yamlUse the server package when you want to embed TinyAuth in your own Node.js runtime.
npm install @tinyrack/tinyauth-serverCreate a minimal config.yaml:
app:
host: http://localhost:8080
port: 8080
security:
session_secret: change-me-session-secret
hash_secret: change-me-hash-secret
database:
type: sqlite
path: ./data.db
basic_authentication_methods:
password:
enabled: true
passkey:
enabled: trueStart TinyAuth:
docker run --rm \
-p 8080:8080 \
-v ./config.yaml:/opt/config.yaml \
ghcr.io/tinyrack-net/tinyauth:latestVerify the OIDC discovery endpoint:
curl http://localhost:8080/.well-known/openid-configurationexamples/clients/nextjs-ssr— Next.js OIDC client with server-side token handlingexamples/clients/react-spa— React SPA using authorization code flow with PKCEexamples/servers/node-hono-sqlite— Hono + SQLite deployment using@tinyrack/tinyauth-serverand the bundled frontend
For configuration guides, client integration examples, deployment notes, and the API reference, visit the TinyAuth documentation site.