Decode JWT

Decodes a JSON Web Token (JWT) and returns its payload, and can optionally verify the token's signature with a secret.

What it does

  • Decodes the provided JWT and returns the decoded payload.
  • When a secret is provided, verifies the token's signature and only returns the payload if it is valid.
  • Reports success as false when the token cannot be decoded or verification fails.

Inputs

NameTypeDescription
Received JWTStringReceived JWT
DG API SecretOptional StringDG API Secret

Outputs

NameTypeDescription
Decoded PayloadObjectDecoded Json Object
SuccessBooleanSuccess

Notes

  • If no secret is provided, the token is decoded without verifying its signature.