// Crerate an express app
const app = require('express')()
// Import the middleware
const group_auth = require('@moreillon/express_group_based_authorization_middleware')
const options = {
url: 'https://api.groups.example.com/v2/members/self/groups',
group: 'GROUP_ID'
}
// Register the middleware
app.use(group_auth(options))
@moreillon/express_group_based_authorization_middleware
2.3.0 • Public • Published/@moreillon/express_group_based_authorization_middleware/
Package Sidebar
Install
npm i @moreillon/express_group_based_authorization_middleware
Weekly Downloads
5
Version
2.3.0
License
MIT
Unpacked Size
21.3 kB
Total Files
10