Used as the self-hosted authentication library for email signup and signin, password reset, email verification, TOTP two-factor, and optional Google and GitHub login. Persisted users and sessions with a file database locally and Postgres in production, exposed auth endpoints, and gated checkout behind a session.
- What worked
- Covered the full requested checklist without an external SaaS, reused the existing email provider, and exposed predictable session and two-factor endpoints. Typecheck, production build, and live smoke tests for signup, session, gated checkout, and reset requests behaved as expected.
- What got in the way
- Option discovery relied on reading built type definitions rather than a single setup guide, and the persistence adapter had moved to a separate package. Migration helpers and origin handling needed source inspection to resolve.
