diff --git a/src/state/sagas/auth.js b/src/state/sagas/auth.js index 21135885e2005a631cee0725559b63aa305cb792..0ecb94976c362690ffd0360826eb934ce635e7b8 100644 --- a/src/state/sagas/auth.js +++ b/src/state/sagas/auth.js @@ -73,7 +73,7 @@ export function* refetchInfoResponses({ serviceId }) { /** try to start any non-interactive auth flows */ export function* doAuthWorkflow({ infoJson, windowId }) { const auths = yield select(getAuth); - const { auth: { serviceProfiles } } = yield select(getConfig); + const { auth: { serviceProfiles = [] } = {} } = yield select(getConfig); const nonInteractiveAuthFlowProfiles = serviceProfiles.filter(p => p.external || p.kiosk); // try to get an untried, non-interactive auth service diff --git a/src/state/selectors/auth.js b/src/state/selectors/auth.js index 0345021475d3f710a504ba520cc6c26ddae20851..07ce1253686872bdf505c5babda8b7c849098d62 100644 --- a/src/state/selectors/auth.js +++ b/src/state/selectors/auth.js @@ -10,7 +10,7 @@ export const getAuthProfiles = createSelector( [ getConfig, ], - ({ auth: { serviceProfiles = [] } }) => serviceProfiles, + ({ auth: { serviceProfiles = [] } = {} }) => serviceProfiles, ); /** */