src/RestGalleries/Auth/Auth.php
protected function fetchUserData($userDataUrl)
    {
        $plugins = [
            'auth' => $this->newAuthExtension(),
        ];

        $request  = $this->newRequest();
        $userData = $request::init($userDataUrl)
            ->addPlugins($plugins)
            ->GET()
            ->getBody();

        $this->addDataTokens($userData, $this->credentials);

        return $userData;

    }
protected function fetchUserData($userDataUrl)
    {
        $plugins = [
            'auth' => $this->newAuthExtension(),
        ];

        $request  = $this->newRequest();
        $userData = $request::init($userDataUrl)
            ->addPlugins($plugins)
            ->GET()
            ->getBody();

        $this->addDataTokens($userData, $this->credentials);

        return $userData;

    }
Makes the http request to the "checkUrl", and gets an object with account data.
Additionally it adds token credentials data to the object by if needed.

@param  string $userDataUrl
@return object