mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-04 05:37:35 +01:00
Vita, a clinic, keeps medical records for ten years under Swiss law: its patients request erasure from a clinician (a tracked thread), and the portal has no delete button. Adopting AccountKit's account panel would have given them one, and /delete-user would have taken the sign-in away from records the clinic must keep. - accountDeletion: false (createAuthRuntime, createAuthInstance) turns better-auth's deleteUser off: /delete-user answers 404 and deletes nothing. - AccountPanel takes `deletion`, the product's own way out (such as a link to its erasure request), shown in place of the delete control beside "Sign out". Both have regression tests: the endpoint refuses with every row and the session intact, and the panel renders the product's node, not the control. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>