From 3dda5043d234fa141b8f14ecccfdb6401fad64c0 Mon Sep 17 00:00:00 2001 From: khushal Date: Tue, 3 Dec 2024 09:00:53 +0530 Subject: [PATCH] (20241203) Passing e-mail id to the 'set_token' method. Had forgotten to do this earlier. --- api/blueprints/mail/oauth_callback.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/blueprints/mail/oauth_callback.py b/api/blueprints/mail/oauth_callback.py index bb58504..3abbccb 100644 --- a/api/blueprints/mail/oauth_callback.py +++ b/api/blueprints/mail/oauth_callback.py @@ -163,6 +163,7 @@ async def handle_gmail_callback(): mongo_conn = current_app.data_mongo, session_token = g.inbound_headers.get("X-Session-Token"), account_identifier = g.inbound_data["state"], + email_id = tokens.email, token = tokens.model_dump() )