3 declare(strict_types=1);
11 use Psr\Cache\CacheItemInterface;
12 use Psr\Cache\CacheItemPoolInterface;
13 use Psr\Http\Message\RequestInterface;
26 $this->provider = $provider;
29 public function __invoke(RequestInterface $request, array $options = []): RequestInterface
36 return 'Bearer ' . $this->provider->getToken()->getValue();
41 return $this->provider->refreshToken();