Files
CatoandClaude bf1f73e259 feat(auth): account mail on, so the sign-in link and recovery appear (#322)
Substrata created its account runtime with `mail: { configured: false }`, so
the sign-in link, "Forgot your password?" and address confirmation could
never appear, and a forgotten password had no way back.

- lib/auth.ts sends account mail through AccountKit's `createAuthMailer`
  (mail-kit, the fleet's RESEND_API_KEY). Without a key the options stay
  hidden, as before; confirming an address is never a wall.
- The sign-in, sign-up and account pages pass `mailConfigured()` to
  `signInMethods`, and a reset link that lands on /sign-in is no longer
  redirected away for a signed-in reader.
- The account journey first asserts every way in the env switches on:
  password and passkey always, the link only with mail, "Continue with
  OrangeCat" and the shared sign-in button with their clients. CI sets
  synthetic, unreachable OIDC clients so both buttons are checked.
- @bitbaum/mail-kit is a direct dependency (AccountKit's optional peer).


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 23:21:22 +01:00
..