express-simple-firewall

Allows you to protect routes from being accessed unless the current user has a certain role.

Usage no npm install needed!

<script type="module">
  import expressSimpleFirewall from 'https://cdn.skypack.dev/express-simple-firewall';
</script>

README

express-simple-firewall

Protects specified routes from being accessed unless the current user has a certain role.