mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix(mypy): annotate jwt_claims as Optional[dict] to fix type incompatibility
Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
parent
f6d53dcb18
commit
cffc92bebe
1 changed files with 1 additions and 0 deletions
|
|
@ -685,6 +685,7 @@ async def _user_api_key_auth_builder( # noqa: PLR0915
|
|||
do_standard_jwt_auth = True
|
||||
if jwt_handler.litellm_jwtauth.virtual_key_claim_field is not None:
|
||||
# Decode JWT to get claims without running full auth_builder
|
||||
jwt_claims: Optional[dict]
|
||||
if jwt_handler.litellm_jwtauth.oidc_userinfo_enabled:
|
||||
jwt_claims = await jwt_handler.get_oidc_userinfo(token=api_key)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue