Skip to content

Commit

Permalink
COLUMBIA: Auth2 external access service marked bad on token failure i…
Browse files Browse the repository at this point in the history
…n src/state/reducers/auth.js
  • Loading branch information
barmintor committed Feb 1, 2025
1 parent 9e04158 commit 638b095
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/state/reducers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 638b095

Please sign in to comment.