From 638b09566ffe59ef84744bcab2a68b23a6a50bf3 Mon Sep 17 00:00:00 2001 From: Benjamin Armintor Date: Sat, 1 Feb 2025 00:12:03 -0500 Subject: [PATCH] COLUMBIA: Auth2 external access service marked bad on token failure in src/state/reducers/auth.js --- src/state/reducers/auth.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/state/reducers/auth.js b/src/state/reducers/auth.js index f7fd1a14d0..8ee4f62313 100644 --- a/src/state/reducers/auth.js +++ b/src/state/reducers/auth.js @@ -36,6 +36,16 @@ export const authReducer = (state = {}, action) => { ok: true, }, }; + case ActionTypes.RECEIVE_ACCESS_TOKEN_FAILURE: + if (!action.authId || action.authId !== 'external') return state; + // mark external service failed + return { + ...state, + [action.authId]: { + ...state[action.authId], + ok: false, + }, + }; case ActionTypes.RESET_AUTHENTICATION_STATE: return omit(state, action.id); default: return state;