K-Digital WebComponents Library
npm install @k-digital/webcomponentsadd Web Component to your HTML:
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
});