mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix: fix runtime openid check
This commit is contained in:
parent
e2ce0aa692
commit
e73b631524
1 changed files with 4 additions and 2 deletions
|
|
@ -891,8 +891,10 @@ async def insert_sso_user(
|
|||
auto_create_key=False,
|
||||
)
|
||||
|
||||
if result_openid and isinstance(result_openid, OpenID):
|
||||
new_user_request.metadata = {"auth_provider": result_openid.provider}
|
||||
if result_openid and hasattr(result_openid, "provider"):
|
||||
new_user_request.metadata = {
|
||||
"auth_provider": getattr(result_openid, "provider")
|
||||
}
|
||||
|
||||
response = await new_user(
|
||||
data=new_user_request,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue