No description
- TypeScript 67%
- JavaScript 29%
- MDX 3.7%
- Astro 0.2%
Update pinned packages (@biomejs/biome 2.4.8, @react-email/preview-server 5.2.10, next 16.2.1) and bump ^-ranged floor versions across the catalog. Upgrade kysely-d1 from ^0.3.0 to ^0.4.0 (ESM/CJS dual distribution). Remove now-unnecessary @ts-expect-error directives in frontend vite/vitest configs, fixed upstream in @rolldown/plugin-babel 0.2.2. |
||
|---|---|---|
| .agents/skills/korean-docs | ||
| .github/workflows | ||
| examples | ||
| packages | ||
| .dockerignore | ||
| .gitignore | ||
| AGENTS.md | ||
| biome.json | ||
| CLAUDE.md | ||
| compose.yaml | ||
| Dockerfile | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| readme.md | ||
tinyauth
A lightweight, self-hosted OpenID Connect (OIDC) Provider.
Features
- OIDC/OAuth2 Compliant - Authorization Code Flow with PKCE support
- Multiple Auth Methods - Password, Passkey/WebAuthn, Social Login (GitHub, Google, Apple, Generic OAuth)
- Two-Factor Authentication - TOTP and Passkey as 2FA
- Multi-language - English, Korean, Japanese
- Customizable UI - Themes, branding, background images, terms of service
- Database Support - PostgreSQL, SQLite
- Docker Ready - Production-ready container with health checks
Quick Start
docker run -p 8080:8080 -v ./config.yaml:/opt/config.yaml ghcr.io/tinyrack-net/tinyauth
Visit http://localhost:8080/.well-known/openid-configuration to verify the server is running.
Configuration
All configuration is done via config.yaml:
app:
host: https://auth.example.com
port: 8080
security:
session_secret: <your-session-secret>
hash_secret: <your-hash-secret>
database:
type: sqlite
path: data.db
basic_authentication_methods:
password:
enabled: true
passkey:
enabled: true
See documentation for full configuration options.
Development
pnpm install
pnpm dev
Examples
examples/clients/nextjs-ssr- Next.js OIDC clientexamples/clients/react-spa- React SPA PKCE clientexamples/servers/cloudflare-hono-d1- Cloudflare Worker deployment of@tinyauth/backendwith the bundled TinyAuth frontendexamples/servers/node-hono-sqlite- Node.js library-mode deployment of@tinyauth/backendwith Hono, SQLite, and the bundled TinyAuth frontend