It has been painful for SDK users to manage refreshing their expired tokens. This pull request introduces the ability to refresh such tokens automatically. To accomplish this all that's needed is for a callback to be registered via the ApiClientFactory.
Targets: v2
Feature
It has been painful for SDK users to manage refreshing their expired tokens. This pull request introduces the ability to refresh such tokens automatically. To accomplish this all that's needed is for a callback to be registered via the
ApiClientFactory
.Addresses https://github.com/helpscout/helpscout-api-php/issues/76
Cherry-picked from the v3 implementation.