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
- [SOLVED] Appwrite Cloud and FRA cloud se...
Can anyone estimate how long this will take to resolve? I am checking status here https://status.appwrite.online/
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...