Skip to content

Fastify plugin for JWT authorization with roles

License

Notifications You must be signed in to change notification settings

itross/fp-authz

Repository files navigation

fp-authz

Fastify plugin for JWT authorization with roles.
Authorization can be performed both for all roles and for a subset of them.
However, the user's role must be one of the configured ones.

Install

npm i @itross/fp-authz

License

MIT