Merge pull request #1 from mgilfillan/master

Check the authorization status is "valid" rather than "ready"
This commit is contained in:
Peter Bakker
2020-03-17 21:12:34 +01:00
committed by GitHub

View File

@@ -284,9 +284,9 @@ class Client
);
$data = json_decode((string)$response->getBody(), true);
sleep(1);
} while ($maxAttempts < 0 && $data['status'] == 'pending');
} while ($maxAttempts > 0 && $data['status'] == 'pending');
return (isset($data['status']) && $data['status'] == 'ready');
return (isset($data['status']) && $data['status'] == 'valid');
}
/**