@moreillon/express_group_based_authorization_middleware
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Express Group-based authorization middleware

Usage

// 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))

Readme

Keywords

none

Package Sidebar

Install

npm i @moreillon/express_group_based_authorization_middleware

Weekly Downloads

4

Version

2.3.0

License

MIT

Unpacked Size

21.3 kB

Total Files

10

Last publish

Collaborators

  • moreillon