Skip to content

Commit

Permalink
fix: avoid recursive dependency in refresh token context
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Jun 7, 2023
1 parent 66ca313 commit de58ff5
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 de58ff5

Please sign in to comment.