diff --git a/src/Token/JWKSTokenDecoder.php b/src/Token/JWKSTokenDecoder.php index aa38ccb..d6f3b6c 100644 --- a/src/Token/JWKSTokenDecoder.php +++ b/src/Token/JWKSTokenDecoder.php @@ -94,6 +94,9 @@ public function decode(string $token, string $key): array return json_decode($json, true, 512, JSON_THROW_ON_ERROR); } + catch (TokenDecoderException $e) { + throw $e; + } catch (\JsonException $e) { throw TokenDecoderException::forDecodingError('JSON parsing failed: ' . $e->getMessage(), $e); }