Farid Karimli commited on
Commit
c89638f
·
1 Parent(s): 2bf30a1

debug prints

Browse files
Files changed (1) hide show
  1. apps/ai_tutor/app.py +2 -0
apps/ai_tutor/app.py CHANGED
@@ -211,10 +211,12 @@ async def auth_google(request: Request):
211
 
212
  # add literalai user info to session store to be sent to chainlit
213
  literalai_user = await get_user_details(email)
 
214
  session_store[session_token]["literalai_info"] = literalai_user.to_dict()
215
  session_store[session_token]["literalai_info"]["metadata"]["role"] = role
216
 
217
  user_info_json = json.dumps(session_store[session_token])
 
218
  user_info_encoded = base64.b64encode(user_info_json.encode()).decode()
219
 
220
  # Set cookies
 
211
 
212
  # add literalai user info to session store to be sent to chainlit
213
  literalai_user = await get_user_details(email)
214
+ print(f"Literalai user: {literalai_user}")
215
  session_store[session_token]["literalai_info"] = literalai_user.to_dict()
216
  session_store[session_token]["literalai_info"]["metadata"]["role"] = role
217
 
218
  user_info_json = json.dumps(session_store[session_token])
219
+ print(f"User info json: {user_info_json}")
220
  user_info_encoded = base64.b64encode(user_info_json.encode()).decode()
221
 
222
  # Set cookies