1👍
I have been using Flutter and Django for sometimes now, the best way to do it is to do the following :
- Install and use Django Rest Framework (DRF)
- Use the token authentification provided by DRF
- When a user logged in your Flutter, save the token on the local storage of the device
- On your Django application filter the queryset based on the request user, by default DRF will act like a session based authentification so request the user is trivial
0👍
This isn’t really specific to just Flutter/SQFLite and Django.
You need to design your backend app’s API in a way that each user can only see and modify their own data, and in that way each user’s app’s local database only has their own data.
Without seeing any more code or knowing the design of your app(s), it’s hard to help in a more specific way.
👤AKX
Source:stackexchange.com