Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-red-contrib-aw365-jwt-token

olafanywhere16ISC1.0.9

creates a jwt token from msg.body and msg.secret

node-red, aw365, jwt, jwt-token

readme

this node needs a msg.body and a msg.secret, or entered in the node

the msg.body shoudl contain the body of the jwt token like: { "iss": "123456-4444-5555-abcd-999999999", "iat": 1672990193 }

and a msg.secret which contains the key to encode the body.

a header will automatically be added which contains: {"alg":"HS256"}

you need to install jsonwebtoken before you can use it

npm i jsonwebtoken