My app was rejected by apple because: "The app supports account creation but does not include an option to initiate account deletion. Apps that support account creation must also offer account deletion to give users more control of the data they've shared while using an app."
So now I have to add that ability. I have done some quick searching and I may have found a solution:
- Create a function to delete all of the users data (documents)
- If data deletion success - proceed with account deletion
https://appwrite.io/docs/references/cloud/server-nodejs/users#delete
Now heres where I find the problem. I do NOT want to give "Any" permissions to delete documents on any of my Collections in my DB. Is there a way I can authenticate as a user from within my function so that All collections only need permissions for "Users" vs "Any"?
Thanks
Hey @LosDragon, yes there is a way: In your appwrite function, you can use JWT. This helps you act on behalf of the user in your function. Here is the documentation for that: https://appwrite.io/docs/products/functions/develop#using-jwt
Recommended threads
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- My organization's project is blocked
My organization's project is blocked so unblocked my organization then I will this