Vue Auth / Recipes / Body Param Is Not Working

One important thing to note when using the auth driver is that all parameters are passed directly through to the http library.

For instance the Vue Resource library accepts the body parameter.

// Vue Resource
this.$login({
    body: {
        email: '[email protected]',
        password: 'testtest'
    }
    ...
});

While the Axios library accepts the data parameter.

// Axios
this.$register({
    data: {
        email: '[email protected]',
        password: 'testtest'
    }
    ...
});

Any other additional parameters can also be passed in directly to the library this way allowing for full customization during any of the method calls.

This applies to any library being used.