Hey developers!
I hope you are doing great.
I am working on an AI powered app.
This app has user credit system.
One credit mean user can run an AI based task/query or chat for one time.
And users can get these credits using two methods
- Watching a rewarded ad
- Buying credits using Play/App store in app purchase functions
But I m stuck with its implementation
I don't want to hold this logic (that increments user credits) in client side.
How should I handle this in my server side.
Can Appwrite handle this?
And how?
And here is why I don't wanna handle this logic in cleint side
If someone manages to alter this request that is incrementing he easily can get unlimited points/credits..
Is there any safe side in appwrite to control this?
Can someone be able to login and manage their data outside(i.e postman or related services to call an api) app if they steal my project id, database id etc?
Kindly share your thoughts about the implementation of such a system using flutter and appwrite.
What can be the best way to manage this?