using appwrite how we can restrict user to login or use there account with only two or one devices.
In your project auth security settings, you can set a max number of sessions:
thanks, this will work from server side what if want to provide different user to different different sessions.
what? sorry, I don't understand what you're asking
no problem, suppose i have two account with user1 and user2 then user1 can login with only 2 devices and user2 can login with only one(1) devices.
there's nothing out of the box for that. you'll need to do something using an Appwrite Function for this
using function how can i achieve this,
trigger a function on session creation, do some logic, delete the session. See the docs:
- Functions: https://appwrite.io/docs/functions
- Users API: https://appwrite.io/docs/server/users
Recommended threads
- Help
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...