Skip to content

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

We need email magic link, Google, and a custom Lichess OAuth (PKCE) provider.

Better Auth, with Lichess as a custom OAuth provider and chess.com OAuth behind a flag.

Auth.js/NextAuth v5 (still in beta, and now maintained by the Better Auth team); Clerk (cost, lock-in).

Auth data lives in our own Postgres.

See docs/superpowers/specs/2026-11-21-chess-improver-design.md.