1
0
Fork 0
mirror of synced 2024-10-01 01:37:56 +13:00

add default scope

This commit is contained in:
Damodar Lohani 2022-03-26 01:33:21 +00:00
parent 2a512fb611
commit 293406eff6

View file

@ -29,7 +29,9 @@ class Zoom extends OAuth2
/** /**
* @var array * @var array
*/ */
protected $scopes = []; protected $scopes = [
'user_profile'
];
/** /**
* @return string * @return string
@ -48,6 +50,7 @@ class Zoom extends OAuth2
'client_id' => $this->appID, 'client_id' => $this->appID,
'redirect_uri' => $this->callback, 'redirect_uri' => $this->callback,
'response_type' => 'code', 'response_type' => 'code',
'scope' => \implode(' ', $this->getScopes()),
'state' => \json_encode($this->state), 'state' => \json_encode($this->state),
]); ]);
} }