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.
action_jwt · action · Utility · Available · v1.0.0
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.
Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
operationOperazione | enumsignverifydecode | yes | verify | sign = crea token · verify = valida firma+scadenza · decode = leggi senza verificare (debug). |
algorithmAlgoritmo | enumHS256HS384HS512 | no | HS256 | — |
secretSecret di firma | string (encrypted) | no | — | Chiave segreta condivisa (HMAC). Obbligatoria per sign/verify. |
payloadPayload (JSON) | JSON object/array | no | {
"sub": "user-123"
} | Claim del token. iat (e exp se imposti la durata) sono aggiunti automaticamente. |
expiresInScadenza (secondi) | number | no | 3600 | Durata di validità in secondi (es. 900 = 15 min). Vuoto/0 = nessuna scadenza. |
tokenToken | expression | no | input | Il JWT da verificare/decodificare. Vuoto = usa l'input del nodo. |
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"
}
}Available now on all FlowForge plans. Try it free without a credit card.
Start freeBrowse all nodes