The JWT: Create Node allows a workflow to create a JSON Web Token from a json object and secret and places it on the payload.
JWT: Create Node configuration requires at least a
JSON Template object,
Secret Template and an
Algorithm Type. The JSON template can be given as a path from the payload or a JSON template object, both should resolve to an object. The secret template can either be a payload template path, or the secret key itself. The default algorithm type is
HS256, see the list below for all algorithms.
- HS256 - default
The JWT: Create Node has one optional output field. The
Destination Path field takes a payload path. If it is defined and the JWT successfully created, it will be added to your payload at said path, otherwise an error object will be there.
Please note that an
issued at time value will be included on the payload, and does modify the Web Token string.
If any of these options are given in the
JSON Template field, they will not be overwritten by these options. These options are your defaults.
Expires In- Given a number and the time unit to create an expiration date. This will not be used if
expexists in the
JSON Template. If you choose
No Expiration Time, and
expis not in the
JSON Template, the generated token will never expire.
Issuer Template- A string or payload template that will used as the issuser. This will not be used if
issexists in the