chore: format

This commit is contained in:
Timothy Jaeryang Baek
2025-09-16 11:16:08 -05:00
parent 77358031f5
commit 034163e9f9
57 changed files with 388 additions and 114 deletions

View File

@@ -602,7 +602,11 @@ class OAuthManager:
or (auth_manager_config.OAUTH_USERNAME_CLAIM not in user_data)
):
user_data: UserInfo = await client.userinfo(token=token)
if provider == "feishu" and isinstance(user_data, dict) and "data" in user_data:
if (
provider == "feishu"
and isinstance(user_data, dict)
and "data" in user_data
):
user_data = user_data["data"]
if not user_data:
log.warning(f"OAuth callback failed, user data is missing: {token}")