Skip to content

Commit 21b2761

Browse files
authored
Merge pull request #14 from upwork/v2.2.2
authzCode configuration for web-based applications
2 parents b39198a + b60cafb commit 21b2761

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Upwork/API/Client.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ public function auth()
107107
if (ApiConfig::get('mode') === 'web') {
108108
$aToken = ApiConfig::get('accessToken');
109109
$rToken = ApiConfig::get('refreshToken');
110-
$authCode = ApiConfig::get('authCode');
110+
$authzCode = ApiConfig::get('authzCode');
111111

112112
!$aToken || $this->_server->option('accessToken', $aToken);
113113
!$rToken || $this->_server->option('refreshToken', $rToken);
114-
!$authCode || $this->_server->option('authCode', $authCode);
114+
!$authzCode || $this->_server->option('authzCode', $authzCode);
115115
}
116116

117117
return $this->_server->auth();

src/Upwork/API/Config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class Config
4646
/**
4747
* @var Authorization code from authorization screen
4848
*/
49-
static private $_code;
49+
static private $_authzCode;
5050
/**
5151
* @var Application mode, i.e. web or nonweb
5252
*/

0 commit comments

Comments
 (0)