elixir-keycloak
elixir-keycloak copied to clipboard
Admin request are broken
In the admin requests the line
opts = Keyword.update(opts, :params, params, &Keyword.merge/2)
is just borken, as the update does not accept functions with 2 parameters.
But in general I dont understand the reason behind the merge there. I guess you wanted to merge the :params from opts and the params from the function parameter.
I guess it would work with
opts = Keyword.update(opts, :params, params, &Keyword.merge(params, &1))
So it updates the :params in opts by either replacing it by the params or merging them together.