lib/passport-http/strategies/digest.js
function parse(params) {
  var opts = {};
  var tokens = params.split(/,(?=(?:[^"]|"[^"]*")*$)/);
  for (var i = 0, len = tokens.length; i < len; i++) {
    var param = /(\w+)=["]?([^"]+)["]?$/.exec(tokens[i])
    if (param) {
      opts[param[1]] = param[2];
    }
  }
  return opts;
}
function parse(params) {
  var opts = {};
  var tokens = params.split(/,(?=(?:[^"]|"[^"]*")*$)/);
  for (var i = 0, len = tokens.length; i < len; i++) {
    var param = /(\w+)=["]?([^"]+)["]?$/.exec(tokens[i])
    if (param) {
      opts[param[1]] = param[2];
    }
  }
  return opts;
}
function parse ( params ) { var opts = { } ; var tokens = params . split ( / ,(?=(?:[^"]|"[^"]*")*$) / ) ; for ( var i = 0 , len = tokens . length ; i < len ; i ++ ) { var param = / (\w+)=["]?([^"]+)["]?$ / . exec ( tokens [ i ] ) if ( param ) { opts [ param [ 1 ] ] = param [ 2 ] ; } } return opts ; }
Parse authentication response.

@api private
Parse authentication response .