chore: format
This commit is contained in:
1 parent
77358031f5
commit
034163e9f9
57 files changed
+388
-114
No files matched your search
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user