Skip to content

Commit

Permalink
fix(login): wrap body value with http_build_query
Browse files Browse the repository at this point in the history
  • Loading branch information
Kresna Satya committed Nov 23, 2022
1 parent 8bbe671 commit f54faaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public function __construct()
'header' => array(
'Content-Type: application/x-www-form-urlencoded'
),
'body' => array(
'body' => http_build_query(array(
'grant_type' => 'client_credentials',
'client_id' => $this->clientId,
'client_secret' => $this->client_secret,
),
), "", "&", PHP_QUERY_RFC3986),
), 'POST');

if ($response['code'] === 200) {
Expand Down

0 comments on commit f54faaf

Please sign in to comment.