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