src/RestGalleries/Auth/Auth.php
protected function isOauth2($credentialsKeys)
    {
        $keys = $this->getOauth2Keys();
        foreach ($keys as $value) {
            if (subarray($value, $credentialsKeys)) {
                return true;
            }
        }

        return false;

    }
protected function isOauth2($credentialsKeys)
    {
        $keys = $this->getOauth2Keys();
        foreach ($keys as $value) {
            if (subarray($value, $credentialsKeys)) {
                return true;
            }
        }

        return false;

    }
Checks if the credentials are using OAuth2.0.

@param  array $credentials
@return boolean