lib/methods.js
function(authMethods){
      var _method = {};
      var _methodName;

      try{
        _.each(authMethods, function(method){
          _methodName = method.name;
          method = _.merge(require('../../'+_methodName), method);
          _method[method.authType] = method;
        });
      }catch(e){
        this._errorHandler(_methodName);
      }

      return _method;
    }
function(authMethods){
      var _method = {};
      var _methodName;

      try{
        _.each(authMethods, function(method){
          _methodName = method.name;
          method = _.merge(require('../../'+_methodName), method);
          _method[method.authType] = method;
        });
      }catch(e){
        this._errorHandler(_methodName);
      }

      return _method;
    }
function ( authMethods ) { var _method = { } ; var _methodName ; try { _ . each ( authMethods , function ( method ) { _methodName = method . name ; method = _ . merge ( require ( '../../' + _methodName ) , method ) ; _method [ method . authType ] = method ; } ) ; } catch ( e ) { this . _errorHandler ( _methodName ) ; } return _method ; }
requires an array of auth method objects

@param  {Array} authMethods object array of auth methods
@return {Object}            containing all required auth methods
@api private
requires an array of auth method objects