auth.js
function prepareConfig(config) {
  if (!('authorizationError' in config)) {
    config.authorizationError = {status: 401, message: 'Unauthorized'};
  }
  if (!('unauthorizedOnly' in config)) {
    config.unauthorizedOnly = false;
  }
}
function prepareConfig(config) {
  if (!('authorizationError' in config)) {
    config.authorizationError = {status: 401, message: 'Unauthorized'};
  }
  if (!('unauthorizedOnly' in config)) {
    config.unauthorizedOnly = false;
  }
}
function prepareConfig ( config ) { if ( ! ( 'authorizationError' in config ) ) { config . authorizationError = { status : 401 , message : 'Unauthorized' } ; } if ( ! ( 'unauthorizedOnly' in config ) ) { config . unauthorizedOnly = false ; } }
Prepare configuration values.
@param {Object} config
Prepare configuration values .