From 79dc137a96e98c8a47268f9fa8742e71a63a1ef9 Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Fri, 28 Apr 2023 06:51:12 +1000 Subject: [PATCH 1/2] Remove M2M token exposure --- src/shared/reducers/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shared/reducers/index.js b/src/shared/reducers/index.js index 5c0b88db5..9edb98723 100644 --- a/src/shared/reducers/index.js +++ b/src/shared/reducers/index.js @@ -154,10 +154,10 @@ export function factory(req) { const user = _.get(res, 'auth.user'); if (user && isomorphy.isServerSide()) { res.auth.userIdHash = generateUserIdHash(user); - getM2mToken() - .then(((token) => { - res.auth.m2mToken = token; - })); + // getM2mToken() + // .then(((token) => { + // res.auth.m2mToken = token; + // })); } if (req) { From ee84cdb368da37f72f7ac08a7f2caa0df2c284d6 Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Fri, 28 Apr 2023 06:58:04 +1000 Subject: [PATCH 2/2] Lint fix --- src/shared/reducers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/reducers/index.js b/src/shared/reducers/index.js index 9edb98723..a3172cc2a 100644 --- a/src/shared/reducers/index.js +++ b/src/shared/reducers/index.js @@ -20,7 +20,7 @@ import { getCommunityId } from 'server/services/communities'; import { redux, config, isomorphy } from 'topcoder-react-utils'; import { reducer as toastrReducer } from 'react-redux-toastr'; import { reducerFactory } from 'topcoder-react-lib'; -import { getAuthTokens, getM2mToken } from 'utils/tc'; +import { getAuthTokens } from 'utils/tc'; import contentful from './contentful'; import topcoderHeader from './topcoder_header';