Set View Model with loadInlineIframe install method

HTML

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sheerid/jslib@2/sheerid-install.css" type="text/css" />

Inline iFrame Installation Type

<div id="my-container"></div>

<script type="module">
  import sheerId from "https://cdn.jsdelivr.net/npm/@sheerid/jslib@2/sheerid-install.js"

  // sheerId.loadInlineIframe returns an object which can be assigned to a variable such as `myFrame`
  const myFrame = sheerId.loadInlineIframe(
    document.getElementById('my-container'),
    'https://services.sheerid.com/verify/62d8b7a39026ba29e6e1aafc/',
  );
  myFrame.setViewModel({
    firstName: 'Jane',
    lastName: 'Doe'
  })

</script>