diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 5361f4e..c938f4b 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -73,7 +73,9 @@ export function isProviderActive( ({ entityID }) => entityID === idp.entityID ); return ( - supported.indexOf(idp.entityID) > -1 && + (isExtraProviders + ? isExtraProviders + : supported.indexOf(idp.entityID) > -1) && idp.protocols.indexOf(protocol) > -1 && (extraProviders.length === 0 || isExtraProviders) && idp.active