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"] )