Skip to content

Commit

Permalink
Merge pull request #345 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 def3f80 + af2dc56 commit a983f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Client/AccountsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function verifyToken($idToken)
return $this->getClient()->post([
'json' => [
'headers' => $this->getHeaders([
'X-Shop-Id' => $this->shopProvider->getCurrentShop()['id'],
'X-Shop-Id' => $this->shopProvider->getShopContext()->getConfiguration()->getShopUuid(),
]),
'token' => $idToken,
],
Expand All @@ -114,7 +114,7 @@ public function refreshToken($refreshToken)
return $this->getClient()->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 a983f88

Please sign in to comment.