mirror of
https://github.com/anikeen-com/yaac.git
synced 2026-03-19 16:46:07 +00:00
Merge pull request #1 from mgilfillan/master
Check the authorization status is "valid" rather than "ready"
This commit is contained in:
@@ -284,9 +284,9 @@ class Client
|
|||||||
);
|
);
|
||||||
$data = json_decode((string)$response->getBody(), true);
|
$data = json_decode((string)$response->getBody(), true);
|
||||||
sleep(1);
|
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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user