Resolved errors in receiving response on token authentication.
Created Protocol class.