scope-check
scope chek for expressjs
Usage:
app.use('/admin', scopeCheck({scopes:['admin','user'], status:401,header:'x-scope'}), external);
app.use('/admin', scopeCheck({scope:'admin', status:401,header:'x-scope'}), external);
scope chek for expressjs
app.use('/admin', scopeCheck({scopes:['admin','user'], status:401,header:'x-scope'}), external);
app.use('/admin', scopeCheck({scope:'admin', status:401,header:'x-scope'}), external);
npm i @lukasa1993/scope-check
1
3.0.0
ISC
4.94 kB
5