Skip to content

Commit

Permalink
Bypass the token caching in case of 401 Status Code
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnoyingTechnology authored Feb 23, 2023
1 parent 73df39b commit 23cfec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection/FluentFMRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public function get()
$results = ($this->callback)();
} catch (\Exception $e) {
if ($e->getCode() === 401 || $e->getCode() === 952) {
$this->getToken();
$this->getToken(true);
$results = ($this->callback)();
} elseif ($e instanceof RequestException && $response = $e->getResponse()) {
Response::check($response, $this->queryString());
Expand Down

0 comments on commit 23cfec1

Please sign in to comment.