Skip to content

Commit

Permalink
chore: remove unnecessary argument
Browse files Browse the repository at this point in the history
  • Loading branch information
bpolaszek committed Mar 20, 2024
1 parent fbbea42 commit 6e9a078
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Security/JWT/Extractor/QueryTokenExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

namespace Freddie\Security\JWT\Extractor;

use Freddie\Helper\FlatQueryParser;
use Psr\Http\Message\ServerRequestInterface;

use function BenTools\QueryString\query_string;
use function is_string;
use function strlen;
use function BenTools\QueryString\query_string;

final class QueryTokenExtractor implements PSR7TokenExtractorInterface
{
Expand All @@ -20,7 +19,7 @@ public function __construct(

public function extract(ServerRequestInterface $request): ?string
{
$qs = query_string($request->getUri(), new FlatQueryParser());
$qs = query_string($request->getUri());
$authorizationQuery = $qs->getParam($this->name);
if (!is_string($authorizationQuery) || strlen($authorizationQuery) < 41) {
return null;
Expand Down

0 comments on commit 6e9a078

Please sign in to comment.