diff --git a/src/Api/Client/AccountsClient.php b/src/Api/Client/AccountsClient.php index ae27e675d..48f4fc6c1 100644 --- a/src/Api/Client/AccountsClient.php +++ b/src/Api/Client/AccountsClient.php @@ -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, ], @@ -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, ],