hemera-jwt-auth
v6.0.2
Published
Granting and authenticating solution with JWT for Hemera
Readme
Hemera-jwt-auth package
Granting and authenticating solution with JWT for Hemera
Usage
const hemera = new Hemera(nats)
hemera.use(require('hemera-jwt'), {
enforceAuth: true // set to false if you want to enable it selectively
jwt: {
secret: '<secret>'
}
})JWT Payload signature
scope: Defines a set of rights (Array<string>orstring)
{ "scope": ["math"] }Example
For a full example see here
Plugin decorators
- .jwtErrors
