lib/connection.js
function parseAuth(auth) {
  var parts = auth.split(':');
  if (parts[0] && !parts[1]) return ['wait1|t' + parts[0]];
  if (!parts[0] && parts[1]) return ['wait1|t' + parts[1]];
  if (!parts[0] && !parts[1]) return [];
  return ['wait1|b' + (new Buffer(auth)).toString('base64')];
}
function parseAuth(auth) {
  var parts = auth.split(':');
  if (parts[0] && !parts[1]) return ['wait1|t' + parts[0]];
  if (!parts[0] && parts[1]) return ['wait1|t' + parts[1]];
  if (!parts[0] && !parts[1]) return [];
  return ['wait1|b' + (new Buffer(auth)).toString('base64')];
}
function parseAuth ( auth ) { var parts = auth . split ( ':' ) ; if ( parts [ 0 ] && ! parts [ 1 ] ) return [ 'wait1|t' + parts [ 0 ] ] ; if ( ! parts [ 0 ] && parts [ 1 ] ) return [ 'wait1|t' + parts [ 1 ] ] ; if ( ! parts [ 0 ] && ! parts [ 1 ] ) return [ ] ; return [ 'wait1|b' + ( new Buffer ( auth ) ) . toString ( 'base64' ) ] ; }
Parse an auth string
Parse an auth string