Skip to content

Commit 9030099

Browse files
author
sachin-maheshwari
authored
Update helper.js
typo
1 parent a9eadbe commit 9030099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
const m2mAuth = require('tc-core-library-js').auth.m2m
33
const request = require('superagent')
44
const _ = require('lodash')
5-
const m2m = m2mAuth(_.pick(config, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME', 'AUTH0_PROXY_SERVER_URL']))
65

76
/*
87
* Function to get M2M token
98
* @returns {Promise}
109
*/
1110
const getM2Mtoken = async (config) => {
11+
const m2m = m2mAuth(_.pick(config, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME', 'AUTH0_PROXY_SERVER_URL']))
1212
return m2m.getMachineToken(config.AUTH0_CLIENT_ID, config.AUTH0_CLIENT_SECRET)
1313
}
1414

0 commit comments

Comments
 (0)