@k-digital/webcomponents
v1.0.28
Published
K-Digital WebComponents Library
Downloads
169
Readme
Login Component
Usage
add Web Component to your HTML:
<authentication-component></authentication-component>
in Your JS awake the component:
const {initAuthenticationComponent} = require('@k-digital/webcomponents/authentication');
initAuthenticationComponent();react to User changes:
document.querySelector('authentication-component').addEventListener('onUserSet', (data) => {
const user = data.detail;
console.log(user); // do smthg with user
});