🔢Decode JWT

The Decode JWT node is used to decode a JSON Web Token (JWT) into its original claims by providing the secret key and a set of options. JWT is a standard for creating compact and self-contained tokens that can securely transmit information between parties.

Options

Type

This is the algorithm that is used to verify the JWT. It should match the algorithm that was used to encode the JWT.

Secret

This is the connection that is used to verify the JWT. It should match the connection that was used to encode the JWT.

Issuer

This is the expected issuer of the JWT. It should match the issuer that was used to encode the JWT.

Audience

This is the expected audience of the JWT. It should match the audience that was used to encode the JWT.

Output

Returns the decoded data from the JWT.

Helpful tips

  • The node will throw a 401 exception if the validation fails.

Last updated