code: protected function checkResponse(ResponseInterface $response, $data): void
      {
          if (\is_array($data) && array_key_exists('error', $data)) {
              throw new OAuthException($data['error'].': '.$data['error_description']);
          }
      }
docs: {@inheritdoc}