mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 12:47:48 +01:00
A live check that dies halfway leaves its throwaway account behind, and only GoTrue's admin API can remove it (orangecat#1533 left one). The workflow finds the user by an exact match of the email, deletes it with DELETE /auth/v1/admin/users/<id> using the service-role key already on the box, and reads the lookup back. Only example.com, example.test and .invalid addresses are accepted, a second match is never guessed between, and no key is printed. Tested against a fake admin API in test:ops. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>