From 061e1a52bcb469d0da74e9ad860b7e3320e269ba Mon Sep 17 00:00:00 2001 From: Kiran Raju Date: Wed, 11 Oct 2023 12:58:15 -0500 Subject: [PATCH] Change auth build query to point to scope instead of scopes --- nylas/resources/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nylas/resources/auth.py b/nylas/resources/auth.py index ee6ef850..37d5c013 100644 --- a/nylas/resources/auth.py +++ b/nylas/resources/auth.py @@ -30,8 +30,8 @@ def _build_query(config: dict) -> dict: if not config["access_type"]: config["access_type"] = "online" - if config["scopes"]: - config["scopes"] = " ".join(config["scopes"]) + if config["scope"]: + config["scope"] = " ".join(config["scope"]) return config