From 293406eff68dbc671f1575772a7b23d6600e7da2 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sat, 26 Mar 2022 01:33:21 +0000 Subject: [PATCH] add default scope --- src/Appwrite/Auth/OAuth2/Zoom.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/OAuth2/Zoom.php b/src/Appwrite/Auth/OAuth2/Zoom.php index 3f0b95531e..19bab05250 100644 --- a/src/Appwrite/Auth/OAuth2/Zoom.php +++ b/src/Appwrite/Auth/OAuth2/Zoom.php @@ -29,7 +29,9 @@ class Zoom extends OAuth2 /** * @var array */ - protected $scopes = []; + protected $scopes = [ + 'user_profile' + ]; /** * @return string @@ -48,6 +50,7 @@ class Zoom extends OAuth2 'client_id' => $this->appID, 'redirect_uri' => $this->callback, 'response_type' => 'code', + 'scope' => \implode(' ', $this->getScopes()), 'state' => \json_encode($this->state), ]); }