
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
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m runni...
- Question about the DB
Hello, I am using the database with this configuration, and when I query an operator user, the company ID shows null; however, in the AppWrite console, the docu...
