fixed: incorrectly indexing the key userinfo in the token.
This commit is contained in:
1 parent
0425621494
commit
4b6700a4b2
1 file changed
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in new issue
Block a user