UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

14 lines (12 loc) • 670 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); //#region src/internal/clerk-js/enterpriseSSOFactors.ts function getEnterpriseConnectionFactors(factors) { return (factors ?? []).filter((factor) => factor.strategy === "enterprise_sso" && "enterpriseConnectionId" in factor && "enterpriseConnectionName" in factor); } function hasMultipleEnterpriseConnections(factors) { return getEnterpriseConnectionFactors(factors).length > 1; } //#endregion exports.getEnterpriseConnectionFactors = getEnterpriseConnectionFactors; exports.hasMultipleEnterpriseConnections = hasMultipleEnterpriseConnections; //# sourceMappingURL=enterpriseSSOFactors.js.map