Skip to content

Commit f21f31a

Browse files
committed
Refactor grant_type parameter in configureOAuth2Auth to use Request\Body::form for improved request handling
1 parent 486744b commit f21f31a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Controllers/BaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ protected function configureOAuth2Auth(&$headers)
128128
$this->config->getClientId() . ':' . $this->config->getClientSecret()
129129
),
130130
],
131-
['grant_type' => 'client_credentials']
131+
Request\Body::form(['grant_type' => 'client_credentials'])
132132
);
133133

134134
if ($response->code < 200 || $response->code > 299 || !isset($response->body->access_token)) {

0 commit comments

Comments
 (0)