Skip to content

Commit

Permalink
Use the new $token variable not $this->token
Browse files Browse the repository at this point in the history
  • Loading branch information
maclof committed Jul 8, 2017
1 parent 08164e3 commit 5a309ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ protected function createGuzzleClient()
}
if ($this->token) {
$token = $this->token;
if (file_exists($this->token)) {
$token = file_get_contents($this->token);
if (file_exists($token)) {
$token = file_get_contents($token);
}

$options['headers']['Authorization'] = 'Bearer ' . $token;
Expand Down

0 comments on commit 5a309ae

Please sign in to comment.