Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static defaultInterceptors() {
const interceptors: any = [];
try {
const basicOauth = IoC.get(SERVICE_IDENTIFIER.camunda_oauth_info);
interceptors.push(new BasicAuthInterceptor(basicOauth));
} catch (error) {
//
}
// add default timeout for polling
interceptors.push(config => {
config.timeout = GLOBAL_TIMEOUT_PULL;
return config;
});
return interceptors;
}
public static getLogger() {