Skip to content

Commit

Permalink
Merge pull request #346 from PrestaShopCorp/fix-recursive-dependency
Browse files Browse the repository at this point in the history
fix: avoid recursive dependency in refresh token context
  • Loading branch information
emmanuelgautier authored Jun 7, 2023
2 parents 66ca313 + de58ff5 commit 42f9b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Api/Client/AccountsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function verifyToken($idToken)
return $this->post([
'json' => [
'headers' => $this->getHeaders([
'X-Shop-Id' => $this->shopProvider->getCurrentShop()['id'],
'X-Shop-Id' => $this->shopProvider->getShopContext()->getConfiguration()->getShopUuid(),
]),
'token' => $idToken,
],
Expand All @@ -107,7 +107,7 @@ public function refreshToken($refreshToken)
return $this->post([
'json' => [
'headers' => $this->getHeaders([
'X-Shop-Id' => $this->shopProvider->getCurrentShop()['id'],
'X-Shop-Id' => $this->shopProvider->getShopContext()->getConfiguration()->getShopUuid(),
]),
'token' => $refreshToken,
],
Expand Down

0 comments on commit 42f9b02

Please sign in to comment.