From 5e4d1e4f341ddfbcefb345e5793f6dbd3af0e582 Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Sat, 14 Sep 2024 12:37:27 +0530 Subject: [PATCH] Send user avatar in session data Signed-off-by: Vallari Agrawal --- src/teuthology_api/routes/login.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/teuthology_api/routes/login.py b/src/teuthology_api/routes/login.py index dab99d2..e318882 100644 --- a/src/teuthology_api/routes/login.py +++ b/src/teuthology_api/routes/login.py @@ -82,6 +82,7 @@ async def handle_callback(code: str, request: Request): data = { "id": response_org_dic.get("user", {}).get("id"), "username": response_org_dic.get("user", {}).get("login"), + "avatar_url": response_org_dic.get("user", {}).get("avatar_url"), "state": response_org_dic.get("state"), "role": response_org_dic.get("role"), "access_token": token,