src/RestGalleries/Http/Plugins/Auth.php
protected function processPluginData($credentials)
    {
        if (! $protocol = OhmyAuth::getAuthProtocol($credentials)) {
            throw new \InvalidArgumentException('Credential keys are invalid.');
        }

        $this->credentials = $credentials;
        $this->protocol    = $protocol;

    }
protected function processPluginData($credentials)
    {
        if (! $protocol = OhmyAuth::getAuthProtocol($credentials)) {
            throw new \InvalidArgumentException('Credential keys are invalid.');
        }

        $this->credentials = $credentials;
        $this->protocol    = $protocol;

    }
Receives data to configure the plugin, then verifies and separates them into variables.

@param  array $credentials
@throws \InvalidArgumentException
@return void