From 4c975957ecc6d9f7bca9905a7ed0f5944ad98ba2 Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Fri, 8 May 2026 12:34:19 -0700 Subject: [PATCH] Update litellm/proxy/auth/handle_jwt.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/auth/handle_jwt.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litellm/proxy/auth/handle_jwt.py b/litellm/proxy/auth/handle_jwt.py index a270031c33c..8301fb00426 100644 --- a/litellm/proxy/auth/handle_jwt.py +++ b/litellm/proxy/auth/handle_jwt.py @@ -249,6 +249,11 @@ class JWTHandler: default=None, ) if isinstance(singular, list): + if singular: + verbose_proxy_logger.debug( + f"JWT Auth: team_id_jwt_field '{self.litellm_jwtauth.team_id_jwt_field}' " + f"returned a list {singular}; using first element '{singular[0]}' automatically." + ) singular = singular[0] if singular else None if singular and singular not in team_ids: team_ids.append(singular)