forked from phoenix/litellm-mirror
refactor(user_api_key_auth.py): refactor to replace user_id_information list with pydantic user_obj
Allows using the 'get_user_object' function in user_api_key_auth, keeping it consistent across jwt-auth and key-auth
This commit is contained in:
parent
ff373663a3
commit
f76261af35
4 changed files with 42 additions and 79 deletions
|
@ -2555,6 +2555,7 @@ async def test_update_user_role(prisma_client):
|
|||
await asyncio.sleep(2)
|
||||
|
||||
# use generated key to auth in
|
||||
print("\n\nMAKING NEW REQUEST WITH UPDATED USER ROLE\n\n")
|
||||
result = await user_api_key_auth(request=request, api_key=api_key)
|
||||
print("result from user auth with new key", result)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue