whole_func_string: function auth (req) {
    if (!req) {
      throw new TypeError('argument req is required')
    }
  
    if (typeof req !== 'object') {
      throw new TypeError('argument req is required to be an object')
    }
  
    // get header
    var header = getAuthorization(req)
  
    // parse header
    return parse(header)
  }
func_code_string: function auth (req) {
    if (!req) {
      throw new TypeError('argument req is required')
    }
  
    if (typeof req !== 'object') {
      throw new TypeError('argument req is required to be an object')
    }
  
    // get header
    var header = getAuthorization(req)
  
    // parse header
    return parse(header)
  }
func_documentation_string: Parse the Authorization header field of a request.
  
  @param {object} req
  @return {object} with .name and .pass
  @public