Just checking: Is there a api override in node tha...
# support-questions-legacy
a
Just checking: Is there a api override in node that handles what happends after user deletions? I want to remove user specific data form a (separate) postgres database when a user is deleted from supertokens. When deleting users via a custom endpoint, I can put code there to handle it. However, when deleting a user via the admin dashboard, the api/users endpoint is called with a DELETE verb, so I cannot inject code there. My current idea would be to have a cron job remove "orphaned" data periodically, but I am not sure if that is the cleanest way.
12 Views