3 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 3b7aec73a7 chore(auth): AccountKit 0.27.0, with the journey that matches it (#352)
* test(journey): the shared sign-in hides while its issuer publishes no provider

AccountKit 0.24+ names only the providers the shared sign-in publishes and
hides the button without one; the journey's synthetic issuer publishes none.

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

* chore(auth): AccountKit 0.27.0, with the journey that matches it

The floor raise and the journey change go together: from 0.24 the shared
sign-in shows only once its service publishes a provider, which the journey
now expects, and the code in the sign-in link's email (0.25) and Lightning
login (0.26.1, off until ACCOUNTKIT_LIGHTNING=1) arrive with it.

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-03 02:01:41 +01:00
CatoandClaude Opus 5.5 05d1b2da83 feat(auth): every way in, on @bitbaum/accountkit, keeping every account (#342)
* feat(auth): every way in, on @bitbaum/accountkit, keeping every account

Sign-in offered email and password and Continue with OrangeCat, on
next-auth. It now runs on AccountKit's runtime and screens: email and
password, the emailed sign-in link, passkeys, two-step codes, recovery,
OrangeCat and the shared sign-in (Google, Apple, GitHub, X, Facebook), each
shown once configured. /account holds passkeys, two-step codes, the
password, sign-in methods and deletion. next-auth, the hand-rolled
OrangeCat resolver and the unused /api/v1/auth/{login,register} are gone.

Every account is kept. The Prisma migration 20261101120000 adds
AccountKit's tables (auth_ prefix, modelled in schema.prisma so Prisma
never proposes dropping them) and imports each person under the same id:
the bcrypt / $bs1$ hash (legacyBcrypt) and the OrangeCat link keyed on the
sub, with AccountKit's own placeholder for a person without an address.
A trigger mirrors anyone the old server creates during the cutover. It is
re-runnable and refuses addresses that collide once lower-cased.

/api/v1/* takes the session cookie or the API token /api/account mints in
the format the Express backend verifies. The session key is
BETTER_AUTH_SECRET, or derived from the secret the box already holds.

CI: a new browser-smoke job rehearses the import twice (counts, no Prisma
drift) and drives Chromium through an imported account signing in with
its old password, sign-up, sign-out, a refused wrong password, sign-in,
recovery through the reset link, both API auth paths and every way in at
320, 390 and 1280px.

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

* test(browser): give the first article visit on next dev a compile-sized wait

The shared-article suite runs on next dev, which compiles a route on its
first visit. The account route (better-auth, pg) now compiles beside the
article for the header, so the first click can outlast the default 5s.
A production server answers at once; the account journey checks that.

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

* ci: re-run checks on the latest head

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:21:15 +01:00
CatoandClaude Opus 5 23dc082219 fix(blog): drop two image references whose assets were never committed (#264)
/blog/intake-engine rendered two broken-image boxes: a `coverImage`
frontmatter key pointing at /images/blog/intake-engine/cover.jpg (400 through
next/image) and an inline pipeline.svg (404). Neither asset exists —
frontend/public/images/ has no commits in this repo's history at all, so both
references were dead from the day the post landed. The artwork does not exist
to restore, so the references go. Nothing substantive is lost: the figure sat
directly above the ordered list (Formulare / Sensor- & API-Streams /
Contextual Prompts / AI-Insights) that already carries its content, and its
caption ("Vom Formular über Streams bis zur KI") only restated that list.
Both code paths already guard on `post.coverImage &&`, so the absent key
renders nothing rather than an empty box.

The durable half is scripts/check-content-images.mjs, wired into the root
`verify` (and therefore CI): it walks every content file, extracts each local
image path from frontmatter and from markdown/HTML image syntax, and fails
naming the file and the unresolvable path. Remote and data: URIs and fenced
code samples are out of scope. Nothing could have caught this before —
markdown needs no build step, `next build` never resolves a runtime src, and
lint/typecheck cannot see that a string is a path.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 13:34:19 -07:00