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
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...