forked from phoenix/litellm-mirror
(fix) google-login auth flow proxy
This commit is contained in:
parent
4e32c76fa8
commit
b28a5cbd0b
1 changed files with 4 additions and 4 deletions
|
@ -2908,10 +2908,10 @@ async def google_callback(code: str):
|
||||||
|
|
||||||
key = response["token"] # type: ignore
|
key = response["token"] # type: ignore
|
||||||
user_id = response["user_id"] # type: ignore
|
user_id = response["user_id"] # type: ignore
|
||||||
{
|
return JSONResponse(
|
||||||
"key": key,
|
content={"key": key, "user_id": user_id}, status_code=200
|
||||||
"user_id": user_id,
|
)
|
||||||
}
|
|
||||||
else:
|
else:
|
||||||
# Handle user info retrieval error
|
# Handle user info retrieval error
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue