Files
loki/scripts/test
CatoandClaude 51ca180fa2 feat(auth): Loki on AccountKit's own screens (#1576)
Closes #1566. Loki answered sign-in from AccountKit but drew its own forms;
its sign-up asked for a name and the password twice. On the AccountKit
runtime its sign-in, sign-up, recovery and account panel are now
AccountKit's SignInForm, SignUpForm, PasswordRecoveryForm and AccountPanel,
the same screens as every fleet app (screens: "accountkit").

- Sign-up asks for an email and a password, nothing else.
- Sign-in: OrangeCat, GitHub (Loki's own app, githubSignIn, AccountKit
  0.26.1), the passkey, the password, the sign-in link and recovery, in
  AccountKit's order and words; the demo and the site-widget hint stay
  around the card.
- Settings → Account: AccountKit's panel (ways to sign in, passkeys, the
  second factor). Loki keeps its own name, password change (through
  AccountKit's endpoint when the credential is AccountKit's) and its own
  deletion (DELETE /api/me, every table; accountDeletion: false).
- The sign-in hook's bootstrap (Loki row, personal org) is unchanged and
  runs for AccountKit's sign-up too; a note's tracking link is claimed
  before onboarding, as the old form did by hand.
- Auth.js (AUTH_RUNTIME unset) keeps Loki's old forms.

Journeys (real Postgres, test:db): AccountKit sign-up gives a Loki row
and a personal org; its password change works on an imported Loki hash
and ends the old one; its deletion answers 404 and Loki's row stays; the
GitHub-only / no Google, X or env owner key journey is kept. Browser
(scripts/test/accountkit-screens-browser.ts, 390 and 320px): sign-up
fields, sign-in order, the panel, adding a passkey and signing in with it.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-03 01:02:01 +01:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00