Rank 2: Process
using appwrite how we can restrict user to login or use there account with only two or one devices.
Votes
0
Replies
7
Participants
Unknown
Messages
8
Rank 2: Process
using appwrite how we can restrict user to login or use there account with only two or one devices.
Admin
In your project auth security settings, you can set a max number of sessions:
Rank 2: Process
thanks, this will work from server side what if want to provide different user to different different sessions.
Admin
what? sorry, I don't understand what you're asking
Rank 2: Process
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.
Admin
there's nothing out of the box for that. you'll need to do something using an Appwrite Function for this
Rank 2: Process
using function how can i achieve this,
Admin
trigger a function on session creation, do some logic, delete the session. See the docs: