# Predictable auth precedence: JWT is now preferred over security key

> When both JWT and security key authentication are enabled, JWT now takes precedence. This standardizes behavior, reduces ambiguity for clients, and aligns with common enterprise security practices.

- Published: 2025-12-19
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/predictable-auth-precedence-jwt-is-now-preferred-over-security-key
- Markdown: https://agno-com-nine.vercel.app/articles/predictable-auth-precedence-jwt-is-now-preferred-over-security-key.md

When both JWT and security key authentication are enabled, JWT now takes precedence. This standardizes behavior, reduces ambiguity for clients, and aligns with common enterprise security practices.

Details:

- No change if only one method is in use
- For deployments using both, ensure clients present a valid JWT after upgrade
- Improves governance and reduces authorization edge cases

Who this is for: Security and platform administrators, API consumers, and teams operating shared gateways.
