Add support for customizable resourceName with 'user' as default, so that custom devise resource_name can be configured via AuthProvider.resourceName(value).

Putting this in the `if (data)` conditional of `httpConfig()` would remove the duplication between login and register.