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 8ad7019 commit ab5b93eCopy full SHA for ab5b93e
src/services/messageService.js
@@ -7,15 +7,14 @@ const tcCoreLibAuth = require('tc-core-library-js').auth;
7
8
const m2m = tcCoreLibAuth.m2m(config);
9
10
-let client = null;
11
12
/**
13
* Get Http client to bus api
14
* @param {Object} logger object
15
* @return {Object} Http Client to bus api
16
*/
17
async function getClient(logger) {
18
- if (client) return client;
+ let client = null;
19
const msgApiUrl = config.get('messageApiUrl');
20
try {
21
const token = await m2m.getMachineToken(config.AUTH0_CLIENT_ID, config.AUTH0_CLIENT_SECRET);
0 commit comments