You can pass the user token (and the session or any other authentication data if you need it) in a json request, for example:
{"auth": {"session_id": "abc", "token":"123"},
"data": "your request data"
}
If you are crazy about security, you can generate a new token after each user login, and even have a lifetime for tokens.
source
share