This page documents the full client-side API for the Persona Relay SDK.
Available on npm: @persona/relay
new Relay(container, options)Arguments
RelayError
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.