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: