nl_tokens: Claim access on a given scope with given mode .
pl_tokens: function ( scope , mode ) { if ( typeof ( scope ) !== 'string' || scope . indexOf ( '/' ) !== - 1 || <mask> . length === 0 ) { throw new Error ( 'Scope should be a non-empty string without forward slashes' ) ; } if ( ! mode . match ( / ^rw?$ / ) ) { throw new Error ( 'Mode should be either \'r\' or \'rw\'' ) ; } this . _adjustRootPaths ( scope ) ; this . scopeModeMap [ scope ] = mode ; }