diff options
| author | Adam Soltys <[email protected]> | 2026-06-14 12:33:43 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-17 07:47:46 -0700 |
| commit | 7332e55641c21e024e50f83176b302df9c488e9a (patch) | |
| tree | 447bbc95d201bbb14d1bf4cdbb313f4aad9fd4c6 /scripts | |
| parent | 85849ede6fb6bd9151703ebb8cf1b2b2df385b99 (diff) | |
| download | coinos-server-7332e55641c21e024e50f83176b302df9c488e9a.tar.gz coinos-server-7332e55641c21e024e50f83176b302df9c488e9a.zip | |
users: add authenticated self-delete endpoint
Port of master 2548f757, adapted from Express to this stack's Hono
handlers (c.get("user"), c.req.json(), setCookie, bail) and TigerBeetle
balances (getBalance/getPending instead of the Redis balance:/pending:
keys). POST /delete (auth) wipes every key tied to the calling user:
user records, payments/invoices, sub-accounts, NWC apps, nostr follow
graph + nip5. Gated by typing the username and refuses while
balance+pending > 10k sats so funds can't be destroyed by accident.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
