Skip to content

Commit cf00044

Browse files
authored
Merge pull request #18 from upwork/bug-17
v2.4.1
2 parents 6f80eed + c2bfddb commit cf00044

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Release History
22

3+
## 2.4.1
4+
* Bug fixes
5+
36
## 2.4.0
47
* Add support of Client Credentials Grant
58

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "upwork/php-upwork-oauth2",
33
"description": "PHP bindings for Upwork API (OAuth2)",
4-
"version": "v2.4.0",
4+
"version": "v2.4.1",
55
"type": "library",
66
"keywords": ["upwork", "php", "api", "oauth2"],
77
"homepage": "http://www.upwork.com",

src/Upwork/API/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(ApiConfig $config)
6161
$auth = 'Upwork\API\AuthTypes\\' . $config::get('authType');
6262

6363
$this->_server = new $auth($clientId, $clientSecret, $redirectUri);
64-
!$expiresIn || $this->_server->option('grantType', $grantType);
64+
!$grantType || $this->_server->option('grantType', $grantType);
6565
!$expiresIn || $this->_server->option('expiresIn', $expiresIn);
6666
!$aToken || $this->_server->option('accessToken', $aToken);
6767
if (ApiConfig::get('grantType') == 'authorization_code') {

0 commit comments

Comments
 (0)