FlowmageDocs

Sign JWT

Creates a login token (JWT) from the details you list, signed with a secret.

Settings

SettingWhat it is
ClaimsThe token's payload — sub, iss, role… A value can come from an earlier step; issued-at and expiry are added here.
Valid forA duration like 15m, 1h or 7d — measured from signing time.
Algorithm"HS256" or "HS384" or "HS512"
SecretRequiredNever printed, never logged — the token is all that leaves.
Technical details
KeyValue
claimsobject (any keys), by default {}
expiresIntext, by default "1h"
algorithm"HS256" or "HS384" or "HS512", by default "HS256"
auth.secrettextwrite `{{ secret.NAME }}`, never the value

Output

FieldType
tokenstring
expiresAtstring
Sample output, and the expression for each field
  • expiresAt"2026-09-19T08:00:00.000Z"
  • token"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.x"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "algorithm": "HS256",
    "auth": {
      "secret": "<secret>"
    },
    "claims": {},
    "expiresIn": "1h"
  },
  "label": "Sign JWT",
  "type": "crypto.jwtSign",
  "version": 1
}