fix: add account deletion flow and audit trail#160
Conversation
|
@CodeByD3v is attempting to deploy a commit to the daviddprtma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
hello @CodeByD3v can you please resolve the merge conflicts first so I can see your work? thanks. |
|
Hey @daviddprtma, the conflicts have been resolved. Kindly review the PR and let me know if you have any suggestions. Thank you. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
what an awesome job. thank you for contribute in AgroDex🎉. I hope you're successful in another project that you handle right now. all the best for you. don't forget to star this repo if you haven't do it yet👌 |
|
Thank you so much, I really appreciate it. It was a pleasure contributing to AgroDex, and I’m glad the PR could help. Wishing you and the team all the best with the project as well. |
Summary
Implements the account deletion flow end-to-end by replacing the client-side soft delete with a backend-powered hard delete of the authenticated user, while preserving an audit trail.
What changed
DELETE /api/accountbackend route using the Supabase service-role clientaccount_deletion_logmigration for a PII-free audit record/logindeleteAccount()to the frontend API helperNotes
user_idanddeleted_atTesting
Closes #107