You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While implementing the refresh functionality, I realized that the updated AccessToken object doesn't contain a new access result, and since there is no setter on that, you have to extract the values and re-create it yourself. Would be nice if the API could handle that:
$options = $this->bynderConfiguration->getToken()->jsonSerialize();
if (empty($data['refresh_token'])) {
$options['refresh_token'] = $oldToken->getRefreshToken();
}
$newToken = new AccessToken($options);
The text was updated successfully, but these errors were encountered:
While implementing the refresh functionality, I realized that the updated AccessToken object doesn't contain a new access result, and since there is no setter on that, you have to extract the values and re-create it yourself. Would be nice if the API could handle that:
The text was updated successfully, but these errors were encountered: