Files
CatoandClaude Opus 5.5 344ddd4c77 feat(auth): every way in on AccountKit's own screens (#167)
* feat(auth): every way in on AccountKit's own screens

Petvity has answered sign-in from AccountKit since this morning, through the
Auth.js compat layer, with AccountKit's sign-up, recovery, passkey and
two-factor endpoints closed. This finishes the move:

- /login, /register and /forgot-password render AccountKit's SignInForm,
  SignUpForm and recovery form: email and password, an email sign-in link,
  passkeys, two-factor, recovery, Continue with OrangeCat and the shared
  bitbaum sign-in, each shown when its env is set.
  /portal/settings/security renders AccountPanel (password, passkeys, second
  factor, linked sign-ins, deleting the account).
- The compat layer passes screens: "accountkit" (AccountKit 0.20.0): every
  AccountKit endpoint is open, and useSession and signOut keep Petvity's
  session shape.
- AccountKit is the only credential writer. Petvity's registration route,
  reset routes, settings password change and its own deletion are removed,
  and so are Auth.js, its edge config, the Drizzle adapter and the
  credential-less Google provider.
- Migration 0009 (additive) makes the panel's rename and deletion reach
  users. The import attaches the new trigger too.
- A Petvity plugin keeps the shared demo account explorable (no sign-in
  changes, no deletion, no mailed links) and keeps ADMIN_EMAILS promotion
  at a password or email-link sign-in.
- Every imported account keeps working: same ids, bcrypt hashes through
  legacyBcrypt, OrangeCat links, roles on users.

browser-smoke.yml now runs every way in against the production build and a
migrated, imported PostgreSQL: the method set at 320px and 390px, sign up,
sign out, a wrong password, sign in, an Auth.js-era bcrypt account, a reset
through the mailed link and an email sign-in link. AccountKit's real mail is
caught by scripts/ci/mail-sink.cjs. Long button labels now wrap (.btn-wrap):
the shared sign-in's label overflowed a 320px screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* fix(ci): the mail sink path needs no runner context

Job-level env cannot read the runner context, so the workflow did not
parse. The sink sits at a fixed path outside the uploaded artifacts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

---------

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