Merge pull request #8620 from Tryanks/dev

fix: incorrectly indexing the key userinfo in the token.
This commit is contained in:
Timothy Jaeryang Baek 2025-01-16 11:12:41 -08:00 committed by GitHub
commit 5526c43853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -200,7 +200,7 @@ class OAuthManager:
except Exception as e: except Exception as e:
log.warning(f"OAuth callback error: {e}") log.warning(f"OAuth callback error: {e}")
raise HTTPException(400, detail=ERROR_MESSAGES.INVALID_CRED) raise HTTPException(400, detail=ERROR_MESSAGES.INVALID_CRED)
user_data: UserInfo = token["userinfo"] user_data: UserInfo = token.get("userinfo")
if not user_data: if not user_data:
user_data: UserInfo = await client.userinfo(token=token) user_data: UserInfo = await client.userinfo(token=token)
if not user_data: if not user_data: