(20241205) Working on clientUserId (how the third-party client recognizes your user).

This commit is contained in:
2024-12-05 12:21:15 +05:30
parent 4fd7da5117
commit b36aeeae9a
6 changed files with 253 additions and 26 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ async def handle_gmail_callback() -> render_template:
mongo_conn = current_app.data_mongo,
session_token = g.inbound_headers.get("X-Session-Token"),
token_id = g.inbound_data["state"],
email_id = tokens.email,
client_user_id = {"email": tokens.email},
token = tokens.model_dump()
)
+1 -1
View File
@@ -180,7 +180,7 @@ async def request_oauth_authorization_url(
mongo_conn = current_app.data_mongo,
session_token = inbound_headers["X-Session-Token"],
user_info = kwargs["session_info"],
email_id = inbound_data.mailId,
client_user_id = {"email": inbound_data.mailId},
service_client = inbound_data.mailClient,
auth_type = "oauth",
sync_freq = inbound_data.syncFreq