File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
includes/Actions/Salesforce Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 66
77namespace BitCode \FI \Actions \Salesforce ;
88
9- use BitCode \FI \Core \Util \HttpHelper ;
10- use BitCode \FI \Flow \FlowController ;
119use WP_Error ;
10+ use BitCode \FI \Flow \FlowController ;
11+ use BitCode \FI \Core \Util \HttpHelper ;
1212
1313class SalesforceController
1414{
@@ -472,6 +472,7 @@ protected static function refreshAccessToken($apiData)
472472 || empty ($ apiData ->clientId )
473473 || empty ($ apiData ->clientSecret )
474474 || empty ($ apiData ->tokenDetails )
475+ || empty ($ apiData ->redirectURI )
475476 ) {
476477 return false ;
477478 }
@@ -483,7 +484,7 @@ protected static function refreshAccessToken($apiData)
483484 'grant_type ' => 'refresh_token ' ,
484485 'client_id ' => $ apiData ->clientId ,
485486 'client_secret ' => $ apiData ->clientSecret ,
486- 'redirect_uri ' => urldecode ($ apiData ->redirectURI ?? '' ),
487+ 'redirect_uri ' => urldecode ($ apiData ->redirectURI ),
487488 'refresh_token ' => $ tokenDetails ->refresh_token
488489 ];
489490
You can’t perform that action at this time.
0 commit comments