nl_tokens: Generates the authentication parameter for the user Preference will be given to the token if it exists
pl_tokens: function encodeUserAuth ( user ) { if ( ! <mask> ) { return null ; } var token = user . token ; if ( token ) { var sha1 = typeof token === 'object' ? token . sha1 : token ; return 'token ' + sha1 ; } return 'Basic ' + base64 . encode ( user . username + ':' + user . password ) }