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
- cant resume project
Invalid console fingerprint event i try man time
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.