@openpass/openpass-js-sdk
Version:
OpenPass SSO JavaScript SDK
20 lines • 1.32 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthError = exports.SdkError = exports.OpenPassClient = void 0;
const errors_1 = require("./auth/error/errors");
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
Object.defineProperty(exports, "AuthError", { enumerable: true, get: function () { return errors_1.AuthError; } });
const bootstrap_1 = require("./bootstrap");
const openPassClient_1 = __importDefault(require("./auth/openPassClient"));
exports.OpenPassClient = openPassClient_1.default;
// The strategy is to call bootstrap during initial script execution, then during bootstrap if elements
// aren't found on the page and DOMContentLoaded hasn't happened yet, set up handlers to try and bootstrap
// again on DOMContentLoaded.
// There can be few scenarios where required elements are present in DOM at the moment of script execution:
// - script is loaded with async attribute and DOM is possibly already constructed when script is being executed
// - script is placed in markup after required elements
(0, bootstrap_1.bootstrap)();
//# sourceMappingURL=main.js.map