Skip to content

Commit b60cafb

Browse files
committed
authzCode configuration for web-based applications
1 parent b39198a commit b60cafb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Upwork/API/Client.php

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)