JWT

action_jwt · action · Utility · Available · v1.0.0

Description

Complete JSON Web Token node — sign, verify and decode — built on node:crypto HMAC (HS256/384/512) with CONSTANT-TIME signature verification and automatic exp checking. Zero external dependencies.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
operation
Operazione
enum
signverifydecode
yesverifysign = crea token · verify = valida firma+scadenza · decode = leggi senza verificare (debug).
algorithm
Algoritmo
enum
HS256HS384HS512
noHS256
secret
Secret di firma
string (encrypted)noChiave segreta condivisa (HMAC). Obbligatoria per sign/verify.
payload
Payload (JSON)
JSON object/arrayno{ "sub": "user-123" }Claim del token. iat (e exp se imposti la durata) sono aggiunti automaticamente.
expiresIn
Scadenza (secondi)
numberno3600Durata di validità in secondi (es. 900 = 15 min). Vuoto/0 = nessuna scadenza.
token
Token
expressionnoinputIl JWT da verificare/decodificare. Vuoto = usa l'input del nodo.

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-action_jwt-1",
  "defId": "action_jwt",
  "label": "JWT",
  "config": {
    "operation": "verify",
    "algorithm": "HS256",
    "payload": "{\n  \"sub\": \"user-123\"\n}",
    "expiresIn": 3600,
    "token": "input"
  }
}

🔗 Related nodes in the same category

Ready to use JWT?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes