Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
bohanyang committed Oct 4, 2023
1 parent 6c60933 commit bb7ab85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mango/Jose/CachedJWKSLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bb7ab85

Please sign in to comment.