Skip to content

Commit eebb629

Browse files
authored
Update OAuthHelper.php
1 parent c8cc6e6 commit eebb629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Helper/OAuthHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getAccessToken($code, $state = null)
5353

5454
$request = new Request('POST', 'https://'.$this->api->getMyshopifyDomain().'/admin/oauth/access_token');
5555
$response = $this->api->getHttpHandler()->send($request, array('form_params' => $params));
56-
$token = json_decode($response->getBody()->getContents());
56+
$token = json_decode($response->getBody()->getContents(), true);
5757
return new AccessToken($token);
5858
}
5959

0 commit comments

Comments
 (0)