(20241204) Solving gmail scopes problem x2

This commit is contained in:
2024-12-04 16:23:25 +05:30
parent c4353ef323
commit 365d8e6d09
+1 -2
View File
@@ -140,8 +140,7 @@ async def handle_gmail_callback() -> render_template:
# achieved by 'request.url' like this: # achieved by 'request.url' like this:
tokens = await current_app.gmail_client.get_authorization_tokens( tokens = await current_app.gmail_client.get_authorization_tokens(
redirect_url = request.url, redirect_url = request.url,
# scopes = g.inbound_data["scope"] scopes = g.inbound_data["scope"]
scopes = SCOPES_GMAIL_MAIL_MANAGEMENT
) )
if tokens: if tokens: