Better Feathers Auth Support
You can now set a strategy attribute on a form to have it add a strategy attribute to the outgoing data. This happens before the processData(data) function.
import LoginForm from 'auth-component/forms/login/';
<LoginForm strategy='local' />Edit data before it's sent.
It's now possible to use the processData(data) function to edit the form data before it gets sent to the server:
import LoginForm from 'auth-component/forms/login/';
function processData (data) {
data.customAttribute = 'hello';
return data;
}
<LoginForm processData={processData} />