Skip to content

Commit

Permalink
remove unusued import
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Mar 21, 2024
1 parent e8b5669 commit 4345dae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/Grant/DeviceCodeGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use League\OAuth2\Server\ResponseTypes\DeviceCodeResponse;
use League\OAuth2\Server\ResponseTypes\ResponseTypeInterface;
use Psr\Http\Message\ServerRequestInterface;
use Ramsey\Uuid\Uuid;
use TypeError;

use function is_null;
Expand Down
1 change: 1 addition & 0 deletions tests/Grant/DeviceCodeGrantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ public function testRespondToRequestMissingDeviceCode(): void
$responseType = new StubResponseType();

// TODO: We need to be more specific with this exception
// We should add an error that says the device code is missing perhaps?
$this->expectException(OAuthServerException::class);

$grant->respondToAccessTokenRequest($serverRequest, $responseType, new DateInterval('PT5M'));
Expand Down

0 comments on commit 4345dae

Please sign in to comment.