Granting and authenticating solution with JWT for Hemera
npm install hemera-jwt-authGranting and authenticating solution with JWT for Hemera


``js`
const hemera = new Hemera(nats)
hemera.use(require('hemera-jwt'), {
enforceAuth: true // set to false if you want to enable it selectively
jwt: {
secret: '
}
})
- scope: Defines a set of rights (Array or string)
`json``
{ "scope": ["math"] }
For a full example see here
* .jwtErrors