Password recovery, the reset link and the sign-in link were already wired
through AccountKit's `mail` option and @bitbaum/mail-kit (lib/mail.ts), and
stay hidden without mail env. Nothing proved either state, so this adds:
- lib/auth/recovery.test.ts: both states as the pages compute them in
production. No mail env: no "Forgot your password?", no sign-in link,
nothing sent. RESEND_API_KEY set: both shown, the reset link goes out
through mail-kit with the fleet default sender.
- auth.integration.test.ts: without mail the reset and magic-link endpoints
are off; with a synthetic key and a captured transport a reset mail is
sent, its link resets the password once, the old password fails, the new
one signs in, and the sign-in link signs in.
- scripts/check-recovery-hidden.mjs + a browser-smoke job: the built app in
Chrome with no mail env offers no forgot link and no sign-in link (de, en).
The configured half stays the fleet shared journey with its mail catcher.
- .env.example: RESEND_API_KEY alone switches mail on; RESEND_FROM is
optional, with its default stated.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
* feat: optional accounts and the fleet's security automation, from templates/app
Accounts (better-auth on Drizzle/pg: password, link, passkey, 2FA, OrangeCat,
shared sign-in) in five languages, optional: reading a report needs none and
no health data is stored. Adds format check, integration tests against
Postgres, CodeQL, dependency audit, secret scan, dependabot, and /api/health
that checks the database.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzP8kyUAz5uhKE3mt87Yi7
* fix(deps): sharp 0.35.5, the patched librsvg
The audit job (prod, high) failed on sharp <0.35.5; the lockfile carried over
from the starter predated main's Dependabot bump.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzP8kyUAz5uhKE3mt87Yi7
---------
Co-authored-by: Claude <noreply@anthropic.com>