I have used AngularJs and rails in my application . I want to achieve the following , i just want to know if it's possible and if so , then how -
1) User A log in from computer A
2) Someone else logs in using the same username and password into machine B
3) Machine A should automatically log out
Currently i have devise users logging in and out in a normal manner , i do have take in their tokens and last login but i am clueless how would i achieve this .
How can i fix this issue in a standard authenticated session mechanism with tokens . Any advice or suggestions would be much appreciated too . I have searched around on SO without any success .