Pass
iframeConfig directly to open a session created by your backend — the recommended integration. If you omit it, the SDK reuses the iframeConfig from a previous createSession() call on the same instance.Parameters
string
required
The session ID to display in the iframe. Returned by
POST /session or by createSession().IframeConfig
Iframe configuration. Required unless a previous
createSession() call on this instance already provided one.Examples
Recommended: session created by your backend
Session created by the SDK
If you don’t need to do anything between session creation and display,
iframeMode: true in createSession() opens the iframe for you.Errors
ThrowsIframe target is required when no iframeTarget is available — neither in the iframeConfig argument nor from a previous createSession() call.