To include this package via CDN, use this line of code:
<script type="text/javascript" src="https://js.trulioo.com/latest/main.js"></script>
JavaScript library which streamlines integration with Trulioo.
Exposes TruliooClient to load EmbedID.
This SDK works in conjunction with the Trulioo EmbedId Middleware.
Instantiate EmbedID through the TruliooClient constructor:
function handleResponse(e) {
console.log('@handleResponse', e);
}
const publicKey = 'PUT_YOUR_PUBLIC_KEY_HERE'; // Public Key
new TruliooClient({
publicKey,
handleResponse
});
Have a look at the example.html file.
Must update the main.js prior pull request to master
npm run webpack-release