Appearance
Direct popup mode
Popup mode is the default for independently hosted web applications.
ts
const keymaster = new KeymasterConnectClient({
targetOrigin: keymasterDeploymentOrigin,
mode: "popup"
});The first connect() or request() call:
- installs the message listener;
- opens
/protocol/v1/popupon the configured Keymaster origin; - waits for the popup's
readymessage; - begins request/result traffic.
The SDK reuses the same named Session Window. Call the first operation from a click or another user activation so popup blockers permit it.
close() closes a popup owned by the SDK, rejects pending local promises, and removes browser listeners. It does not call connect.logout implicitly.