Skip to content

Commit

Permalink
webservice: always initialize the OAuth scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchamp committed Nov 9, 2023
1 parent 9dc0f49 commit e91846e
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 e91846e

Please sign in to comment.