Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(err: any, client: Client) => {
if (err) {
reject(err);
return;
}
client.setSecurity(new ClientSSLSecurity(options.clientKey as string, options.clientCert as string, '', {}));
resolve(client);
}
);