nl_tokens: Parse basic auth to object .
pl_tokens: function parse ( string ) { if ( typeof string !== 'string' ) { return undefined } // parse header var match = CREDENTIALS_REGEXP . exec ( string ) if ( ! <mask> ) { return undefined } // decode user pass var userPass = USER_PASS_REGEXP . exec ( decodeBase64 ( match [ 1 ] ) ) if ( ! userPass ) { return undefined } // return credentials object return new Credentials ( userPass [ 1 ] , userPass [ 2 ] ) }