Skip to main content

Setup

Integrating ezto verify's Web SDK into your project is simple and doesn't require any build steps. Follow the steps below to get started by including the production-ready CSS and JavaScript via CDN.


1 Add CDN to Project

  • Add the ezto verify and socket.js bundle using CDN, by including the following script tags in your HTML to load the necessary JavaScript files:
<script src="https://cdn.socket.io/4.7.2/socket.io.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/ezto-io/web-push@latest/eztoverify.min.js" type="text/javascript"></script>

2 Add ezto verify CSS

Include the following link tag in your HTML to load the necessary CSS file:

<link href="https://cdn.jsdelivr.net/gh/ezto-io/web-push@latest/eztoverify.min.css" rel="stylesheet" />

3 Call Request Function

To use the SDK, call the request method provided by the ezto verify script included via CDN. Refer here for the integration.


const ez = new eztoverify();

ez.request({
request: {}
}, {
api: "{API}"
}, function(res) {
//Handle the result here;
});

note

For additional information on configuring the Web SDK, please see here.