mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-04 05:37:35 +01:00
A first OrangeCat sign-in in evig, loki, petvity and surf-your-life failed with unable_to_create_user: their onAccountCreated writes the product's row, its mirror trigger records the same link in auth_accounts, and the row better-auth stores next collided with it. That record, for the same person, now gives way. onAccountCreated also receives the provider's tokens (decrypted) for a product that keeps them itself, as Loki must to publish to OrangeCat. Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com>