Skip to content

Commit

Permalink
#71 Check access token expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdpurcell committed Jun 1, 2020
1 parent e8b4c87 commit 498c9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CloudApi/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function request(string $verb, string $path, array $query = [], array $op
*/
public function makeRequest(string $verb, string $path, array $query = [], array $options = [])
{
if (! isset($this->accessToken)) {
if (! isset($this->accessToken) || $this->accessToken->hasExpired()) {
$this->accessToken = $this->provider->getAccessToken('client_credentials');
}

Expand Down

0 comments on commit 498c9c7

Please sign in to comment.