From 0918db250ba71296535452ade8106a74bd90d7de Mon Sep 17 00:00:00 2001 From: khushal Date: Wed, 4 Dec 2024 16:54:55 +0530 Subject: [PATCH] (20241204) Trying to solve scope x5 --- api/blueprints/mail/oauth_callback.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/blueprints/mail/oauth_callback.py b/api/blueprints/mail/oauth_callback.py index 76bda6a..834aca1 100644 --- a/api/blueprints/mail/oauth_callback.py +++ b/api/blueprints/mail/oauth_callback.py @@ -140,7 +140,8 @@ async def handle_gmail_callback() -> render_template: # achieved by 'request.url' like this: tokens = await current_app.gmail_client.get_authorization_tokens( redirect_url = request.url, - scopes = g.inbound_data["scope"].split(" ") + # scopes = g.inbound_data["scope"].split(" ") + scopes = None ) if tokens: