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.
For Passkeys, when a transaction is opened in a new tab using the web SDK, it relies on the Related Origin Request (ROR). This feature is supported only in the latest versions of browsers and is not compatible with Firefox.
1 Add CDN to Project
- Add the
ezto verify
andsocket.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.