diff --git a/src/Security/JWT/Extractor/QueryTokenExtractor.php b/src/Security/JWT/Extractor/QueryTokenExtractor.php index f6d222a..82eba96 100644 --- a/src/Security/JWT/Extractor/QueryTokenExtractor.php +++ b/src/Security/JWT/Extractor/QueryTokenExtractor.php @@ -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 { @@ -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;