From a7d33260b3e0b3f31419e9e740c8f57d6998e049 Mon Sep 17 00:00:00 2001 From: khushal Date: Tue, 3 Dec 2024 08:34:38 +0530 Subject: [PATCH] (20241203) Bug fix -> I had put 'set_token' where I should have put 'get_token'. --- api/blueprints/mail/oauth_callback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/blueprints/mail/oauth_callback.py b/api/blueprints/mail/oauth_callback.py index ae64163..d1bcb4b 100644 --- a/api/blueprints/mail/oauth_callback.py +++ b/api/blueprints/mail/oauth_callback.py @@ -169,7 +169,7 @@ async def mail_callback( tokens.email = user_profile.data["emailAddress"] if user_profile.success else None # The e-mail id that we requested access to and the one that granted us access should be the same: - placeholder_token = await current_app.mail_oauth_model.set_token( + placeholder_token = await current_app.mail_oauth_model.get_token( mongo_conn = current_app.data_mongo, account_identifier = inbound_data["state"] )