From f9df03ba86ec7684728deb3f6a62d41dac060ff6 Mon Sep 17 00:00:00 2001 From: khushal Date: Thu, 23 Jan 2025 16:54:30 +0530 Subject: [PATCH] (20250123) --- controllers_v2/message/mail/gmail.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers_v2/message/mail/gmail.py b/controllers_v2/message/mail/gmail.py index 147c0c1..bd8d00d 100644 --- a/controllers_v2/message/mail/gmail.py +++ b/controllers_v2/message/mail/gmail.py @@ -277,13 +277,14 @@ class GmailController(MailController): response.action = "authorized" response.message = "The user has given authorization." - pass # We fetch the auth-token associated with this authorization loop: auth_token = await self.get_token_from_key( mongo_data_conn = mongo_data_conn, - token_key = inbound_data["state"] + token_key = inbound_data["state"], + must_be_active = False ) if not auth_token: + response.action = "unknown" response.message = "Failed to load the auth-token for this flow." return response