(20250123)

This commit is contained in:
2025-01-23 16:54:30 +05:30
parent 9e4d47a259
commit f9df03ba86
+3 -2
View File
@@ -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