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
- Synchronous Function Execution Timed Out...
Hi Appwrite team 👋 I’m facing a synchronous function execution timeout issue on Appwrite Cloud and would appreciate some guidance. I executed this function u...
- Push Notification FCM Error
Hello dear people. I tried to integrate Push Notifications into my Flutter App. Everything works fine on Android/iOS Simulator + Testflight but as soon as I s...
- Skip total counts crash the query
Hello, When adding the total parameter (either true, the default, or false) to the listRows function, it raises the following error: `type 'bool' is not a sub...