Skip to content

Commit

Permalink
Merge pull request #542 from jrchamp/fix/scopes-not-initialized
Browse files Browse the repository at this point in the history
webservice: always initialize the OAuth scopes
  • Loading branch information
jrchamp authored Nov 10, 2023
2 parents 9dc0f49 + e91846e commit ff3f119
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,8 @@ protected function get_access_token() {
$expires = $cache->get('expires');
if (empty($token) || empty($expires) || time() >= $expires) {
$token = $this->oauth($cache);
} else {
$this->scopes = $cache->get('scopes');
}

return $token;
Expand Down

0 comments on commit ff3f119

Please sign in to comment.