From 365d8e6d099140bc1b8dd47e2fff21ab81d0fa0c Mon Sep 17 00:00:00 2001 From: khushal Date: Wed, 4 Dec 2024 16:23:25 +0530 Subject: [PATCH] (20241204) Solving gmail scopes problem x2 --- api/blueprints/mail/oauth_callback.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/blueprints/mail/oauth_callback.py b/api/blueprints/mail/oauth_callback.py index 21d9627..85ed382 100644 --- a/api/blueprints/mail/oauth_callback.py +++ b/api/blueprints/mail/oauth_callback.py @@ -140,8 +140,7 @@ 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"] - scopes = SCOPES_GMAIL_MAIL_MANAGEMENT + scopes = g.inbound_data["scope"] ) if tokens: