Merge request from 0.5 to master
Automatic sync between local and server token expiration dates
There might be sync problems between local and server token expiration dates. This type of connection tries to connect using two attempts, as follows:
- The API tries to connect with current token
- If response code is 401 (Unauthorized), try to generate new token and attempt to connect again
- Return connection response from first or second attempt