Skip to content

Commit 29b197f

Browse files
authored
Update Api.php
If shopify domain or access token changes, reinitialize Guzzle Client
1 parent fb12591 commit 29b197f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Api.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ public function getMyshopifyDomain()
5555
public function setMyshopifyDomain($domain)
5656
{
5757
$this->myshopify_domain = $domain;
58+
$this->init();
5859
return $this;
5960
}
6061

6162
public function setAccessToken($accessToken)
6263
{
6364
$this->access_token = $accessToken;
65+
$this->init();
6466
return $this;
6567
}
6668

0 commit comments

Comments
 (0)