diff --git a/src/Transports/OAuth2.php b/src/Transports/OAuth2.php index 2de4408..99957c6 100644 --- a/src/Transports/OAuth2.php +++ b/src/Transports/OAuth2.php @@ -73,6 +73,11 @@ public function setOptions(array $options): OAuth2 public function rawRequest($endpoint, array $data = [], $method = 'get') { $this->getClient()->setHeader('Authorization', 'Bearer '.$this->getToken()); + + foreach($this->provider->getHeaders() as $name => $value) { + $this->getClient()->setHeader($name, $value); + } + return parent::rawRequest($endpoint, $data, $method); }