Relay Widget SDK Reference
This page documents the full client-side API for the Persona Relay SDK.
Installation
Available on npm: @persona/relay
npm
yarn
Constructors
new Relay(container, options)
Arguments
RelayError
Methods
client.destroy()
Unmounts the widget, removes all iframes from the DOM, and cleans up all event listeners and observers. Call this when the widget is no longer needed.

