mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-03 21:27:48 +01:00
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>