Limit number of devices logged in at the same time Answered
Asked by Spora Design in Slack
Hi! Anyone know if memberstack allows a max number of devices logged in at the same time?And could it be done with some code? Like.. when someone log in, the rest of devices log out? Can it be done?
Comments
1 comment
Right now, we can't force logouts until the JWT expires. The best that can be done currently is:
getCurrentMember()
method or getMemberJSON() method on each page and retrieve the devices field. Use JS to see if there are more than X amount of IP entries in the device field (you set this limit yourself and hard code it in your logic).Please sign in to leave a comment.