# Stronger JWT validation with audience checks

> JWTMiddleware now supports a configurable audience parameter to validate the aud claim. This ensures tokens are intended for your services, reducing the risk of token replay or misrouting and…

- Published: 2026-01-06
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/stronger-jwt-validation-with-audience-checks
- Markdown: https://agno-com-nine.vercel.app/articles/stronger-jwt-validation-with-audience-checks.md

JWTMiddleware now supports a configurable audience parameter to validate the aud claim. This ensures tokens are intended for your services, reducing the risk of token replay or misrouting and strengthening your zero-trust posture.

Details:

- Enforce audience verification without changing existing token flows
- Compatible with major identity providers and standard JWT libraries
- Non-breaking change; enable when ready by configuring your expected audience

Who this is for: Security-conscious teams and enterprises running production workloads with strict auth requirements.
