Invoke Launch Function

To launch the login modal, use the object created on initialisation and use the document.getElementById method to get started!

<script>
   document.getElementById("launchFize").onclick = () => handler.launch();     
</script>

A completed sample of the code required to setup the SDK is shown below:

<html lang="en">
  <head>
    <script src="https://cdn.getfize.com/sdk/v1.0/getfize.js"></script>
  </head>
  <body>
    <div id="launchFize">Launch Fize</div>
    <script>
      (function () {
        var handler = FIZE.configure({
          client_id: "FIZE_PROVIDED_CLIENT_ID"
        });

        document.getElementById("launchFize").onclick = () => handler.launch();

      })();
    </script>
  </body>
</html>

📘

On successful launch, the callback "onLaunch()" will be triggered.

Testing Details

Use the following credentials to test the SDK:

UsernamePasswordUse Case
UsergoodPassgoodSuccessful login to an account with two policies, one Auto and one Home.

What’s Next