code: public function invalidateBearerToken()
      {
          $url = $this->getInvalidateBearerTokenUrl();
  
          $bearerToken = $this->bearerToken;
  
          if ($bearerToken === null) {
              $bearerToken = $this->getBearerToken();
          }
  
          $params = array(
              'post' => array('access_token' => $bearerToken),
              'headers' => $this->buildBearerTokenHeader(),
          );
  
          $response = $this->curl->send($url, $params);
  
          $obj = json_decode($response['body']);
  
          if (!$obj || !isset($obj->access_token) || $obj->access_token != $bearerToken) {
              $this->findExceptions($response);
          }
  
          unset($url, $bearerToken, $params, $response, $obj);
  
          return true;
      }
docs: Invalidate a bearer token
  
  @return bool
  @throws \TwitterOAuth\Exception\CurlException
  @throws \TwitterOAuth\Exception\TwitterException