UNPKG

@cresta-oss/samlify

Version:

High-level API for Single Sign On (SAML 2.0)

18 lines 563 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var context = { validate: undefined }; function getContext() { return context; } exports.getContext = getContext; function setSchemaValidator(params) { if (typeof params.validate !== 'function') { throw new Error('validate must be a callback function having one arguemnt as xml input'); } // assign the validate function to the context context.validate = params.validate; } exports.setSchemaValidator = setSchemaValidator; //# sourceMappingURL=api.js.map