mirror of
https://github.com/bitinflow/accounts.git
synced 2026-11-01 05:09:07 +00:00
Fix oauth token generation
This commit is contained in:
1 parent
29a46a9ef9
commit
f2d064caef
2 files changed
+2
-4
No files matched your search
@@ -24,8 +24,8 @@ trait OauthTrait
|
||||
public function retrievingToken(string $grantType, array $attributes): Result
|
||||
{
|
||||
try {
|
||||
$response = $this->client->request('POST', '/oauth/token', $attributes + [
|
||||
'form_params' => [
|
||||
$response = $this->client->request('POST', '/oauth/token', [
|
||||
'form_params' => $attributes + [
|
||||
'grant_type' => $grantType,
|
||||
'client_id' => $this->getClientId(),
|
||||
'client_secret' => $this->getClientSecret(),
|
||||
|
||||
Reference in new issue
Block a user