npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-jwt-validate

v0.1.4

Published

n8n node for JWT token validation with JWKS support

Downloads

2,962

Readme

n8n-nodes-jwt-validate

This is an n8n community node that provides JWT (JSON Web Token) validation with JWKS (JSON Web Key Set) support for your n8n workflows.

JWT validation is essential for securing API workflows and verifying authentication tokens. This node validates JWT tokens by verifying their signature using public keys from JWKS endpoints, and validates claims like issuer, audience, and expiration.

n8n is a fair-code licensed workflow automation platform.

InstallationFeaturesConfigurationUsageResources

Installation

Follow the installation guide in the n8n community nodes documentation.

Alternatively, install via npm:

npm install n8n-nodes-jwt-validate

Features

  • JWKS Support: Automatically fetch and cache public keys from JWKS endpoints
  • Auto-Discovery: Automatically discover JWKS URL from the token's issuer claim by appending /.well-known/jwks.json
  • Custom JWKS URL: Option to provide a custom JWKS endpoint URL
  • Issuer Validation: Verify the token's issuer (iss) claim matches expected value
  • Audience Validation: Verify the token's audience (aud) claim matches expected value
  • Expiry Checking: Optional validation of token expiration (exp) claim
  • Detailed Error Messages: Clear error messages indicating specific validation failure reasons
  • Continue on Fail: Option to continue workflow execution even if validation fails

Configuration

Parameters

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | JWT Token | String | Yes | The JWT token to validate | | JWKS Configuration | Options | Yes | Choose "Auto-Discover from Issuer" or "Custom JWKS URL" | | JWKS URL | String | Conditional | Required when using "Custom JWKS URL" option | | Required Issuer | String | Yes | Expected issuer (iss) claim value | | Required Audience | String | Yes | Expected audience (aud) claim value | | Check Expiry | Boolean | No | Enable/disable expiration validation (default: true) |

Usage

Basic Example

  1. Add the JWT Validate node to your workflow
  2. Configure the JWT token (from webhook, previous node, or expression)
  3. Set the required issuer (e.g., https://auth.example.com)
  4. Set the required audience (e.g., your-api-identifier)
  5. Choose JWKS configuration method
  6. The node outputs the validated JWT payload on success

Output

On Success:

{
  "jwtValid": true,
  "jwtPayload": {
    "iss": "https://auth.example.com",
    "aud": "your-api-identifier",
    "sub": "user123",
    "exp": 1234567890,
    // ... other claims
  }
}

On Failure (with Continue on Fail enabled):

{
  "jwtValid": false,
  "error": "JWT token has expired at 2024-01-01T00:00:00.000Z"
}

Error Messages

The node provides specific error messages for different validation failures:

  • Invalid JWT format
  • Missing key ID (kid) in token header
  • Failed to retrieve signing key from JWKS
  • Token expired
  • Invalid signature
  • Issuer mismatch
  • Audience mismatch
  • Token not yet valid (nbf claim)

Credentials

This node does not require credentials. It validates JWT tokens using public keys from JWKS endpoints.

Compatibility

Tested with n8n version 1.0.0 and above.

Resources

Version history

0.1.0

  • Initial release
  • JWT validation with JWKS support
  • Auto-discovery of JWKS from issuer
  • Custom JWKS URL option
  • Issuer and audience validation
  • Optional expiry checking