Get auth token from JSON request.

Added getting authentication token from JSON request data.