Files
petvity/drizzle/meta/_journal.json
T
CatoandClaude 2d3609c13e feat(auth): stage AccountKit beside Auth.js, switch off (#156)
Petvity moves from Auth.js to @bitbaum/accountkit one reversible step at a
time, as evig and kivvi do. Nothing changes while AUTH_RUNTIME is unset.

- Migration 0008: AccountKit's tables under an `auth_` prefix, plus the
  users <-> auth_users mirror functions, inert until attached.
- scripts/db/accountkit-import.sql: accounts under their own ids, bcrypt
  hashes byte for byte, verification kept, orangecat_sub as an `orangecat`
  account row; refuses collisions, drift or a live shared runtime, then
  attaches the triggers. The rehearsal CLI always rolls back.
- lib/auth/shared/: the runtime (ids: 'uuid', legacy bcrypt, AccountKit
  0.16.0), a session reader re-read from `users` on every request, a bridge
  that answers next-auth/react including "Sign in with OrangeCat", and a
  Petvity row for a person AccountKit creates itself. AccountKit's own
  credential endpoints stay closed; Petvity's writers stay the only ones.
- lib/auth/claims.ts: the ADMIN_EMAILS promotion rule, written once.
- The proxy has one routing function and two session sources.
- browser-smoke.yml runs the account journey once per runtime; the
  AccountKit leg first runs the rehearsal and the real-database journeys.

docs/ACCOUNTKIT-MIGRATION.md records what is left before switching.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 08:31:55 +01:00

70 lines
1.3 KiB
JSON

{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1776881581649,
"tag": "0000_pretty_cammi",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1786625270865,
"tag": "0001_lethal_mongu",
"breakpoints": true
},
{
"idx": 2,
"version": "7",
"when": 1786633186277,
"tag": "0002_tiny_the_spike",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1786638607126,
"tag": "0003_bizarre_rachel_grey",
"breakpoints": true
},
{
"idx": 4,
"version": "7",
"when": 1786658591991,
"tag": "0004_dusty_chat",
"breakpoints": true
},
{
"idx": 5,
"version": "7",
"when": 1786797695836,
"tag": "0005_regular_nighthawk",
"breakpoints": true
},
{
"idx": 6,
"version": "7",
"when": 1786817840992,
"tag": "0006_steep_molecule_man",
"breakpoints": true
},
{
"idx": 7,
"version": "7",
"when": 1790941092252,
"tag": "0007_orangecat_sub",
"breakpoints": true
},
{
"idx": 8,
"version": "7",
"when": 1793517120754,
"tag": "0008_accountkit_staging",
"breakpoints": true
}
]
}