code: protected function getBearerTokenCredentials()
      {
          $signingKey = rawurlencode($this->getConsumerKey()) . ':' . rawurlencode($this->getConsumerSecret());
  
          return base64_encode($signingKey);
      }
docs: Generate bearer token credentials
  
  @return string  Bearer token credentials