We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0685320 commit 5ae25c7Copy full SHA for 5ae25c7
src/services/busApi.js
@@ -6,14 +6,12 @@ const tcCoreLibAuth = require('tc-core-library-js').auth;
6
7
const m2m = tcCoreLibAuth.m2m(config);
8
9
-let client = null;
10
-
11
/**
12
* Get Http client to bus api
13
* @return {Object} Http Client to bus api
14
*/
15
async function getClient() {
16
- if (client) return client;
+ let client = null;
17
const apiBusUrl = config.get('busApiUrl');
18
try {
19
const token = await m2m.getMachineToken(config.AUTH0_CLIENT_ID, config.AUTH0_CLIENT_SECRET);
0 commit comments