forked from phoenix/litellm-mirror
(fix) google/login use redirect resp
This commit is contained in:
parent
4731f869e3
commit
f7e64cd528
1 changed files with 5 additions and 3 deletions
|
@ -2942,9 +2942,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
Add a link
Reference in a new issue