diff --git a/src/Client.php b/src/Client.php index efc935b..655610f 100644 --- a/src/Client.php +++ b/src/Client.php @@ -297,7 +297,7 @@ class Client $this->signPayloadKid(null, $challenge->getAuthorizationURL()) ); $data = json_decode((string)$response->getBody(), true); - if ($maxAttempts > 1) { + if ($maxAttempts > 1 && $data['status'] != 'valid') { sleep(ceil(15 / $maxAttempts)); } $maxAttempts--;