src/RestGalleries/Auth/Auth.php
protected function filterCredentialsByKey($filter = 'client_credentials')
    {
        $this->removeCredentialPrefixes('oauth_');

        $method = 'get';
        $method .= ucfirst($this->protocol);
        $method .= 'Keys';

        $keys = call_user_func_array([$this, $method], [null]);

        $this->credentials = array_only(
            $this->credentials,
            $keys[$filter]
        );

    }
protected function filterCredentialsByKey($filter = 'client_credentials')
    {
        $this->removeCredentialPrefixes('oauth_');

        $method = 'get';
        $method .= ucfirst($this->protocol);
        $method .= 'Keys';

        $keys = call_user_func_array([$this, $method], [null]);

        $this->credentials = array_only(
            $this->credentials,
            $keys[$filter]
        );

    }
Filters the given credentials for use them with the "Auth::fetchUserData" method.

@param  array $tokenCredentials
@return void