src/GuzzleMiddleware.php
private function acquireAccessToken()
    {
        if (isset($this->accessToken) && $this->accessToken->getRefreshToken()) {
            return $this->provider->getAccessToken(new RefreshToken(), ['refresh_token' => $this->accessToken->getRefreshToken()]);
        }

        return $this->provider->getAccessToken($this->grant, $this->grantOptions);
    }
private function acquireAccessToken()
    {
        if (isset($this->accessToken) && $this->accessToken->getRefreshToken()) {
            return $this->provider->getAccessToken(new RefreshToken(), ['refresh_token' => $this->accessToken->getRefreshToken()]);
        }

        return $this->provider->getAccessToken($this->grant, $this->grantOptions);
    }
private function acquireAccessToken ( ) { if ( isset ( $ this -> accessToken ) && $ this -> accessToken -> getRefreshToken ( ) ) { return $ this -> provider -> getAccessToken ( new RefreshToken ( ) , [ 'refresh_token' => $ this -> accessToken -> getRefreshToken ( ) ] ) ; } return $ this -> provider -> getAccessToken ( $ this -> grant , $ this -> grantOptions ) ; }
Acquire a new access token using a refresh token or the configured grant.

@return AccessToken
Acquire a new access token using a refresh token or the configured grant .