From 56e28e91bb3c3583082b4676763a4d04dcb7e4a6 Mon Sep 17 00:00:00 2001 From: Armino Popp Date: Sat, 4 Jul 2020 17:04:25 +0300 Subject: [PATCH] Correcting scope in getAccessToken --- src/Appwrite/Auth/OAuth2/Box.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/OAuth2/Box.php b/src/Appwrite/Auth/OAuth2/Box.php index dc4713492..48e2a387a 100644 --- a/src/Appwrite/Auth/OAuth2/Box.php +++ b/src/Appwrite/Auth/OAuth2/Box.php @@ -65,7 +65,7 @@ class Box extends OAuth2 "client_secret" => $this->appSecret, "code" => $code, "grant_type" => "authorization_code", - "scope" => 'manage_app_users', + "scope" => \implode(',', $this->getScopes()), "redirect_uri" => $this->callback ]) );