We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b53b0b7 commit 1d9c121Copy full SHA for 1d9c121
src/Grant/DeviceCodeGrant.php
@@ -158,10 +158,14 @@ public function respondToAccessTokenRequest(
158
$this->deviceCodeRepository->persistDeviceCode($deviceCodeEntity);
159
160
if ($shouldSlowDown) {
161
- throw OAuthServerException::slowDown($deviceCodeEntity->getInterval());
+ throw OAuthServerException::slowDown(
162
+ $this->intervalVisibility ? $deviceCodeEntity->getInterval() : null
163
+ );
164
}
165
- throw OAuthServerException::authorizationPending($deviceCodeEntity->getInterval());
166
+ throw OAuthServerException::authorizationPending(
167
168
169
170
171
if ($deviceCodeEntity->getUserApproved() === false) {
0 commit comments