Skip to content

Commit c7f870b

Browse files
committed
Update grant_type parameter in configureOAuth2Auth to use query string format for consistency
1 parent f21f31a commit c7f870b

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-
Request\Body::form(['grant_type' => 'client_credentials'])
131+
'grant_type=client_credentials'
132132
);
133133

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

0 commit comments

Comments
 (0)