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
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.
- Weird Table Causes Console to break
I dont even know how this even happened looks like the $createdAt and , $id got switched? <@831428608895615056>