my application is an ecomm app that list the products and i just want to add the delete functionality to delete the product
the user has permission in appwrite console to delete and update it , has also created that product
My product.js code(service i created)
TL;DR
Developers encountering 'The current user is not authorized to perform the requested action' error when attempting to delete a product in an e-commerce app using Redux Toolkit and Redux Persist.
- User has appropriate permissions set in Appwrite console.
- Check the code in AllProduct.jsx and Product.js for any authorization issues.
- Ensure the correct authentication is used when triggering the delete functionality.
Solution:
- Check the user authentication status and token validity.
- Confirm that the delete request includes the necessary user authorization credentials.