(20241203) Bug fix -> I had put 'set_token' where I should have put 'get_token'.

This commit is contained in:
2024-12-03 08:34:38 +05:30
parent f8feeb4fc0
commit a7d33260b3
+1 -1
View File
@@ -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"]
)