diff --git a/src/Validator/JwtValidator.php b/src/Validator/JwtValidator.php index c358696..d843946 100644 --- a/src/Validator/JwtValidator.php +++ b/src/Validator/JwtValidator.php @@ -60,7 +60,7 @@ public function __construct(RequestStack $request_stack, JwtTranscoderInterface $key_id = $config_factory->get('jwt.config')->get('key_id'); if (isset($key_id)) { - $key = $key_repo->getKey('jwt_key'); + $key = $key_repo->getKey($key_id); if (!is_null($key)) { $secret = $key->getKeyValue();