Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/Components/APICall/APICall.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class APICall extends Component {
let _error: any = undefined;
try {
// To support both old and new OAuth configuration, we check for both oauth_con_id and oauthService.
if ((config?.data?.oauth_con_id !== '' && config?.data?.oauth_con_id !== 'None') || (config?.data?.oauthService !== '' && config.data.oauthService !== 'None')) {
if ((config?.data?.oauth_con_id !== undefined && config?.data?.oauth_con_id !== '' && config?.data?.oauth_con_id !== 'None') || (config?.data?.oauthService !== '' && config.data.oauthService !== 'None')) {
const additionalParams = extractAdditionalParamsForOAuth1(reqConfig);
const oauthHeaders = await generateOAuthHeaders(agent, config, reqConfig, logger, additionalParams);
//reqConfig.headers = { ...reqConfig.headers, ...oauthHeaders };
Expand Down