Skip to content

Commit

Permalink
Refresh token as body
Browse files Browse the repository at this point in the history
  • Loading branch information
casperbakker committed Nov 11, 2024
1 parent 6770110 commit d633a08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,10 @@ protected function requestToken(string $clientId, string $clientSecret, TokenReq
$response = $this->rawRequest('POST', static::API_TOKEN_URI, [
'headers' => [
'Accept' => 'application/json',
'Authorization' => sprintf('Basic %s', $credentials)
'Authorization' => sprintf('Basic %s', $credentials),
'Content-Type' => 'application/x-www-form-urlencoded',
],
'query' => $token->toArray()
'body' => http_build_query($token->toArray())
]);

$responseTypes = [
Expand Down

0 comments on commit d633a08

Please sign in to comment.