mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
(fix) google/login use redirect resp
This commit is contained in:
parent
11d9caf88c
commit
92aafa1560
1 changed files with 5 additions and 3 deletions
|
|
@ -2938,9 +2938,11 @@ async def google_callback(code: str, request: Request):
|
|||
|
||||
key = response["token"] # type: ignore
|
||||
user_id = response["user_id"] # type: ignore
|
||||
return JSONResponse(
|
||||
content={"key": key, "user_id": user_id}, status_code=200
|
||||
)
|
||||
return RedirectResponse(url="chat.openai.com")
|
||||
# return RedirectResponse(url=google_auth_url)
|
||||
# return JSONResponse(
|
||||
# content={"key": key, "user_id": user_id}, status_code=200
|
||||
# )
|
||||
|
||||
else:
|
||||
# Handle user info retrieval error
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue