JWT Helper
JWT helper component provides actions for signing and verifying JWT tokens.
Categories: Helpers
Type: jwtHelper/v1
Actions
Sign
Name: sign
Creates JWT token.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| payload | Payload | ARRAY Items[{STRING(key), STRING(value)}($item)] | Payload of the JWT token. | true |
| secret | Secret | STRING | Secret of the JWT token. | true |
Example JSON Structure
{
"label" : "Sign",
"name" : "sign",
"parameters" : {
"payload" : [ {
"key" : "",
"value" : ""
} ],
"secret" : ""
},
"type" : "jwtHelper/v1/sign"
}Output
Type: STRING
Verify
Name: verify
Verify JWT token.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| jwtToken | JWT Token | STRING | JWT token you want to verify. | true |
| secret | Secret | STRING | Secret of the JWT token. | true |
Example JSON Structure
{
"label" : "Verify",
"name" : "verify",
"parameters" : {
"jwtToken" : "",
"secret" : ""
},
"type" : "jwtHelper/v1/verify"
}Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
How is this guide?
Last updated on