/** * @param RequestInterface $request * * @return RequestInterface */ private function appendQueryParams(RequestInterface $request) { $queryParams = $this->auth->getQueryParameters(); foreach ($queryParams as $key => $value) { $uri = Uri::withQueryValue($request->getUri(), $key, $value); $request = $request->withUri($uri); } return $request; }