forked from phoenix/litellm-mirror
Merge pull request #2762 from jacobnguyenn/update-jwt-auth
fix: still verify kid on single pub key fetched
This commit is contained in:
commit
f44df7bed6
1 changed files with 2 additions and 1 deletions
|
@ -114,6 +114,7 @@ class JWTHandler:
|
|||
public_key: Optional[dict] = None
|
||||
|
||||
if len(keys) == 1:
|
||||
if kid is None or key["kid"] == kid:
|
||||
public_key = keys[0]
|
||||
elif len(keys) > 1:
|
||||
for key in keys:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue