diff --git a/packages/mango/Jose/CachedJWKSLoader.php b/packages/mango/Jose/CachedJWKSLoader.php index 4ea35e2..833cb71 100644 --- a/packages/mango/Jose/CachedJWKSLoader.php +++ b/packages/mango/Jose/CachedJWKSLoader.php @@ -27,9 +27,9 @@ public function __construct( public function __invoke(): JWKSet { - $hash = 'jwks:' . hash('xxh128', $this->url); + $token = 'jwks:' . hash('xxh128', $this->url); - return $this->cache->get($hash, function (ItemInterface $item) { + return $this->cache->get($token, function (ItemInterface $item) { $item->expiresAfter($this->expiresAfter); return $this->jkuFactory->loadFromUrl($this->url, $this->header);