@henrylatour/auth
The single sign-on and secrets service for all of my apps: my own OpenID Connect provider.
Nov 2026 – Present
- TypeScript
- Express 5
- MongoDB / Mongoose
- jose
- Zod
- React 19
- Vite
- MobX
- TanStack Router
- Tailwind v4
- Playwright
- Turborepo
- Railway
- Sign-in:
- OIDC with PKCE, refresh-token rotation with reuse detection, and rotating signing keys.
- GitHub and Google login.
- An account page, and an admin console for apps (OIDC clients), users, an allowlist and an audit log.
- Personal access tokens for scripts and MCP servers.
- Rate-limited endpoints.
- Settings: name, avatar and theme are shared with every app as OIDC claims.
- GitHub token handoff: apps that need to act on GitHub, like the code manager, get the user's GitHub token from the auth service, refreshed in the background.
- Env-variable vault:
- Encrypted per-app, per-environment variables that apps load at startup.
- Development keys can be marked dev-only, so production never gets them.
- A published client package (
@henrylatour/vault) with a runtime loader and a CLI. - An admin API and an MCP server, so AI agents can request and set variables safely. Apps connect through sign-in (
vault:*scopes) instead of a pasted token.
- Testing: an end-to-end OIDC test suite, a Playwright browser suite that runs against a fake client app, and tutorial screenshots that regenerate automatically.
- Stack: Express 5, MongoDB, Mongoose, jose, Zod, React 19, Vite, MobX, TanStack Router and Tailwind v4, in a Turborepo monorepo. Deployed on Railway.