Skip to content

Commit 35915ff

Browse files
authored
Merge pull request topcoder-platform#131 from LieutenantRoger/jan-develop-fix-m2m
fix m2m token
2 parents f02f334 + 6435cd4 commit 35915ff

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

config/webpack/default.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// eslint-disable-next-line import/no-extraneous-dependencies
2+
const webpack = require('webpack');
3+
24
module.exports = {
35
node: {
46
tls: 'empty',
@@ -23,5 +25,10 @@ module.exports = {
2325
'tc-accounts',
2426
'to-capital-case',
2527
'topcoder-react-utils',
28+
'tc-core-library-js',
29+
],
30+
plugins: [
31+
// eslint-disable-next-line global-require
32+
new webpack.DefinePlugin({ CONFIG: JSON.stringify(require('config')) }),
2633
],
2734
};

src/services/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515

1616
const { m2m: m2mAuth } = auth;
1717

18-
const m2m = m2mAuth(_.pick(config.SECRET.TC_M2M, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME', 'AUTH0_PROXY_SERVER_URL']));
18+
const m2m = m2mAuth(_.pick(config.AUTH_CONFIG, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME', 'AUTH0_PROXY_SERVER_URL']));
1919

2020
/* The minimal delay [ms] between API calls. To avoid problems with the requests
2121
* rate limits configured in Topcoder APIs, we throttle requests rate at the

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy