0005. Better Auth for authentication
Source:
docs/decisions/0005-better-auth.md. Generated at build time; edit the source file.
Date: 2026-11-21 Status: Accepted
Context
Section titled “Context”We need email magic link, Google, and a custom Lichess OAuth (PKCE) provider.
Decision
Section titled “Decision”Better Auth, with Lichess as a custom OAuth provider and chess.com OAuth behind a flag.
Alternatives considered
Section titled “Alternatives considered”Auth.js/NextAuth v5 (still in beta, and now maintained by the Better Auth team); Clerk (cost, lock-in).
Consequences
Section titled “Consequences”Auth data lives in our own Postgres.
See docs/superpowers/specs/2026-11-21-chess-improver-design.md.