//#region src/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.ts
/** Determines if the authentication is optional */
var isAuthOptional = (securityRequirements) => {
	const hasComplexRequirement = securityRequirements.some((requirement) => Object.keys(requirement).length > 1);
	return securityRequirements.some((requirement) => Object.keys(requirement).length === 0) && !hasComplexRequirement;
};
//#endregion
export { isAuthOptional };

//# sourceMappingURL=is-auth-optional.js.map