Skip to content
Snippets Groups Projects
Commit 631b21ca authored by Michael Kessler's avatar Michael Kessler
Browse files

[TASK] Check if api token exist before setting the token

parent add25268
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,9 @@ class VimeoService implements LoggerAwareInterface { ...@@ -156,7 +156,9 @@ class VimeoService implements LoggerAwareInterface {
*/ */
protected function requestAccessToken(): void { protected function requestAccessToken(): void {
$token = $this->vimeoApiClient->clientCredentials(self::SCOPE); $token = $this->vimeoApiClient->clientCredentials(self::SCOPE);
$this->vimeoApiClient->setToken($token['body']['access_token']); if ($token['body']['access_token']) {
$this->vimeoApiClient->setToken($token['body']['access_token']);
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment