devise_token_auth
devise_token_auth copied to clipboard
null user attributes on email registration
When a user registers using email, the values sent in JSON are not saved in the user object.

@kerolloz Override the controller and specify the parameters you want to allow in the configure_permitted_parameters method
For more information, please see this.
class RegistrationsController < DeviseTokenAuth::RegistrationsController
before_action :configure_permitted_parameters
protected
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: %i(name nickname))
end
end