UNPKG

@openpass/openpass-js-sdk

Version:
12 lines 764 B
import { SdkError, AuthError } from "./auth/error/errors"; import { bootstrap } from "./bootstrap"; import OpenPassClient from "./auth/openPassClient"; // 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 bootstrap(); export { OpenPassClient, SdkError, AuthError, }; //# sourceMappingURL=main.js.map