app/controllers/api/v1/api_controller.rb
# Devise methods
# Authentication key(:username) and password field will be added automatically by devise.
Devise methods
Authentication key(:username) and password field will be added automatically by devise.
Devise methods Authentication key ( : username ) and password field will be added automatically by devise .
def configure_permitted_parameters
        added_attrs = [:email, :first_name, :last_name]
        devise_parameter_sanitizer.permit :sign_up, keys: added_attrs
        devise_parameter_sanitizer.permit :account_update, keys: added_attrs
      end
def configure_permitted_parameters added_attrs = [ :email , :first_name , :last_name ] devise_parameter_sanitizer . permit :sign_up , keys : added_attrs devise_parameter_sanitizer . permit :account_update , keys : added_attrs end
Devise methods
Authentication key(:username) and password field will be added automatically by devise.
Devise methods Authentication key ( : username ) and password field will be added automatically by devise .