Skip to content

Jwt

Node: jwt · Full type: n8n-nodes-base.jwt · Version: 1

Credentials

jwtAuth (alias: @jwt)

CREDENTIAL @jwt = jwtAuth "My Jwt"

Operations

decode

Parameter Type Default Details
token string "" required

sign

Parameter Type Default Details
useJson boolean false
claims collection {} keys: audience, expiresIn, issuer, jwtid, notBefore, subject
claimsJson json "{
"my_field_1": "value 1",
"my_fi..."

verify

Parameter Type Default Details
token string "" required

Common Parameters

Parameter Type Default Details
options collection {} keys: complete, ignoreExpiration, ignoreNotBefore, clockTolerance, kid, algorithm

Parameter Details

claims children:

Parameter Type Default Details
audience string ""
expiresIn number 3600
issuer string ""
jwtid string ""
notBefore number 0
subject string ""

options children:

Parameter Type Default Details
complete boolean false
ignoreExpiration boolean false
ignoreNotBefore boolean false
clockTolerance number 0
kid string ""
algorithm options "HS256" ES256, ES384, ES512, HS256, HS384, HS512, PS256, PS384, ... (12 total)

Example

NODE "jwt" @jwt AS "Jwt" {
  operation: "decode",
  token: {{ $json.token }}
}