code: function (entity, options) {
          var type,
              result,
              self = this,
              auth = self.cleanAuth(entity, options);
  
          if (!auth) { return auth; }
  
          result = { type: (type = auth.type) };
  
          if (type !== 'noauth') {
              result[type] = _.map(auth[type], function (param) {
                  return {
                      key: param.key,
                      value: param.value,
                      type: (param.type === 'text' ? 'string' : param.type) || self.typeMap[typeof param.value] || 'any'
                  };
              });
          }
  
          return result;
      }
docs: Sanitizes a collection SDK compliant auth list.
  
  @param {Object} entity - The wrapper entity for the auth manifest.
  @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 {Object[]} - An array of raw collection SDK compliant auth parameters.