Files
CatoandClaude Opus 5.5 a98fb87131 refactor(auth): OrangeCat sign-in through @bitbaum/accountkit (next-auth v4) (#283)
server/auth/orangecat.ts (the v4 provider) is gone: the provider is
accountkit's orangecatProviderV4 — client_secret_post, PKCE, identity scopes,
and a profile without email, so the address arrives as contactEmail and is
never an identity. The sub-keyed find-or-create, including the insert race
datacat found, is accountkit's resolveOrangecatUser (it took datacat's as a
source). What stays is datacat's Prisma store: where the shared rule would
store a .invalid placeholder, datacat stores null, as before. The in-memory
Prisma tests (P2002 race, no email takeover) still run against it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 05:40:29 -07:00
..