@securecall/client-component
Version:
SecureCall Core Web Component
25 lines (23 loc) • 856 B
HTML
<html lang="en-AU">
<head>
<title>SecureCall Minimal</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/@securecall/client-component/dist/client-component/client-component.esm.js"></script>
</head>
<body>
<div id="web-component">
<securecall-client id="securecall" theme="dark" api-location="https://client.au.securecallapi.cloud"></securecall-client>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const securecall = document.getElementById('securecall');
securecall.addEventListener('authenticationSuccess', () => {
console.log('Authentication success');
});
securecall.addEventListener('authenticationFailure', () => {
console.log('Authentication failed');
});
})
</script>
</body>
</html>