ByteChef LogoByteChef
Components

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

NameLabelTypeDescriptionRequired
payloadPayloadARRAY
Items [{STRING(key), STRING(value)}($item)]
Payload of the JWT token.true
secretSecretSTRINGSecret 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

NameLabelTypeDescriptionRequired
jwtTokenJWT TokenSTRINGJWT token you want to verify.true
secretSecretSTRINGSecret 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.


Additional instructions