Skip to content

Commit 293406e

Browse files
committed
add default scope
1 parent 2a512fb commit 293406e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Appwrite/Auth/OAuth2/Zoom.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ class Zoom extends OAuth2
2929
/**
3030
* @var array
3131
*/
32-
protected $scopes = [];
32+
protected $scopes = [
33+
'user_profile'
34+
];
3335

3436
/**
3537
* @return string
@@ -48,6 +50,7 @@ public function getLoginURL():string
4850
'client_id' => $this->appID,
4951
'redirect_uri' => $this->callback,
5052
'response_type' => 'code',
53+
'scope' => \implode(' ', $this->getScopes()),
5154
'state' => \json_encode($this->state),
5255
]);
5356
}

0 commit comments

Comments
 (0)