As far as understood, obtain_auth_token
view works as a login functionality. You provide credentials and get the token back. What will be the logout? Should I delete the token on logout? What would be the best practice?
If deleting is OK, then how do I handle multiple clients at the same time. Say, the user logs out from mobile device but wants to stay logged in on the web. The Token
model currently has a OneToOne relationship to User
.
Please give me some advice. Thanks