code: function (entity, options) {
          var type,
              params,
              result,
              self = this,
              auth = self.cleanAuth(entity, options);
  
          if (!auth) { return auth; }
  
          result = { type: (type = auth.type) };
  
          if (type !== 'noauth') {
              // @todo: Handle all non _ prefixed properties, ala request bodies
              params = _.map(auth[type], function (value, key) {
                  return {
                      key: key,
                      value: value,
                      type: self.typeMap[typeof value] || 'any'
                  };
              });
  
              params.length && (result[type] = params);
          }
  
          return result;
      }
docs: Transforms an object of auth params to their array equivalent.
  
  @param {Object} entity - The wrapper object for the array of auth params.
  @param {?Object} options - The set of options for the current auth cleansing operation.
  @param {?Boolean} [options.excludeNoauth=false] - When set to true, noauth is set to null.
  @returns {*}