(fix) google/login use redirect resp

This commit is contained in:
ishaan-jaff 2024-01-27 18:17:58 -08:00
parent 4731f869e3
commit f7e64cd528

View file

@ -2942,9 +2942,11 @@ async def google_callback(code: str, request: Request):
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( return RedirectResponse(url="chat.openai.com")
content={"key": key, "user_id": user_id}, status_code=200 # return RedirectResponse(url=google_auth_url)
) # return JSONResponse(
# content={"key": key, "user_id": user_id}, status_code=200
# )
else: else:
# Handle user info retrieval error # Handle user info retrieval error