Skip to content

Commit

Permalink
fix: send auth data as JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed Nov 10, 2021
1 parent 9e09b35 commit 1222eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function fetchAuthTokenRaw(): ResponseInterface
\GuzzleHttp\RequestOptions::HEADERS => [
'Accept' => 'application/json',
],
\GuzzleHttp\RequestOptions::FORM_PARAMS => [
\GuzzleHttp\RequestOptions::JSON => [
'userIdentifyer' => $this->config->getUsername(),
'userProtector' => $this->config->getPassword(),
],
Expand Down
2 changes: 1 addition & 1 deletion tests/FetchAuthTokenRawTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function it_can_prepare_request(bool $isLive): void
\GuzzleHttp\RequestOptions::HEADERS => [
'Accept' => 'application/json',
],
\GuzzleHttp\RequestOptions::FORM_PARAMS => [
\GuzzleHttp\RequestOptions::JSON => [
'userIdentifyer' => $this->username,
'userProtector' => $this->password,
],
Expand Down

0 comments on commit 1222eb4

Please sign in to comment.