src/RestGalleries/APIs/ApiUser.php
public function connect(array $clientCredentials)
    {
        $endPoints = array_filter([
            'request'   => $this->urlRequest,
            'authorize' => $this->urlAuthorize,
            'access'    => $this->urlAccess,
        ]);

        $auth = $this->newAuth();
        $data = $auth::connect($clientCredentials, $endPoints, $this->checkUrl);

        return $this->getUserOrFail($data);

    }
public function connect(array $clientCredentials)
    {
        $endPoints = array_filter([
            'request'   => $this->urlRequest,
            'authorize' => $this->urlAuthorize,
            'access'    => $this->urlAccess,
        ]);

        $auth = $this->newAuth();
        $data = $auth::connect($clientCredentials, $endPoints, $this->checkUrl);

        return $this->getUserOrFail($data);

    }
Makes all the OAuth process to connect the app with the API, only, with the client credentials, the oauth endpoints urls, and an URL to get the user data and token credentials.

@param  array $clientCredentials
@return \Illuminate\Support\Fluent