(20241205) Working on clientUserId (how the third-party client recognizes your user).
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user