mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-03 21:17:26 +01:00
* Stage AccountKit tables beside NextAuth and rehearse the account import NextAuth owns users/accounts/sessions and 31 tables reference users.id, so AccountKit's tables are added under the auth_ prefix and the shared user id is users.id. The import (scripts/db/accountkit-import.sql) keeps ids, addresses, verification and password hashes byte for byte, keeps Google links as inert rows, and refuses drift, colliding addresses and a live shared runtime. Its CLI always rolls back. NextAuth stays authoritative; nothing reads the new tables yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * Serve Vita's sign-in from AccountKit behind AUTH_RUNTIME (off) With AUTH_RUNTIME=accountkit, auth() answers today's session shape from the shared session plus the users row on every request (role changes and deletions take effect at once; env admins promoted as before). The pages keep next-auth/react: /api/auth answers its session, csrf, providers, signout and credentials calls from AccountKit and hands the rest to it. Password sign-in keeps the per-account lockout; registration, forgot, reset and change password go through AccountKit with the same answers and link shape the pages expect. Unset, NextAuth answers as today. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * Depend on AccountKit 0.13.0 for prefixed account tables Exempt @bitbaum/accountkit from the release-age gate by name, like the fleet's other own packages, instead of per version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * ci: browser smoke of the patient's way in, on NextAuth and on AccountKit The shared-package gate holds any PR that changes @bitbaum/accountkit until browser-smoke.yml passes on its head, and Vita had none. This one builds the production server on PostgreSQL from the committed migrations and drives Chromium through register, dashboard, sign out, a refused wrong password, sign in and the recovery pages, plus every auth page at 390px. It runs on NextAuth, then, after the real import, on AccountKit, where the person registered under NextAuth signs in with their old password. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * ci: run the AccountKit leg only where the import is staged The same workflow file can then ship on branches without the shared runtime and merge cleanly beside this one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * chore(deps): accountkit ^0.14.0, the version the canary runs The fleet rollout gate admits a shared-package version only once the canary (biaslens) has deployed it; biaslens is on 0.14.0, so 0.13.0 would wait forever. 0.14.0 adds plugins and trusted origins, neither used here. 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>