lib/methods.js
function(authMethod){
      var method = {};
      var _methodName = authMethod.name;

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

      return method;
    }
function(authMethod){
      var method = {};
      var _methodName = authMethod.name;

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

      return method;
    }
function ( authMethod ) { var method = { } ; var _methodName = authMethod . name ; try { var _method = _ . merge ( require ( '../../' + _methodName ) , authMethod ) ; method [ _method . authType ] = _method ; } catch ( e ) { this . _errorHandler ( _methodName ) ; } return method ; }
requires a single auth method by object

@param  {Object} authMethod the auth method
@return {Object}            containing all required auth methods
@api private
requires a single auth method by object