@tmlmobilidade/external 20260723.1550.37 → 20260723.2301.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clients/cp/auth.js +2 -2
- package/package.json +1 -1
package/dist/clients/cp/auth.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { Logger } from '@tmlmobilidade/logger';
|
|
3
|
-
import {
|
|
3
|
+
import { cpSshTunnel } from '@tmlmobilidade/ssh';
|
|
4
4
|
import { asyncSingletonProxy } from '@tmlmobilidade/utils';
|
|
5
5
|
import https from 'node:https';
|
|
6
6
|
/* * */
|
|
@@ -122,7 +122,7 @@ export class CPAuthClient {
|
|
|
122
122
|
throw new Error('Missing CP_AUTH_CLIENT_ID or CP_AUTH_CLIENT_SECRET environment variables.');
|
|
123
123
|
}
|
|
124
124
|
if (!this.tunnel) {
|
|
125
|
-
this.tunnel =
|
|
125
|
+
this.tunnel = cpSshTunnel({ dstAddr: process.env.CP_AUTH_HOST, dstPort: 443 });
|
|
126
126
|
await this.tunnel.connect();
|
|
127
127
|
}
|
|
128
128
|
Logger.info({ message: '[CPAuthClient] Setting up SSH Tunnel...' });
|