We are using web widget on every page. The web widget is configured to show restricted guide and contact form. So based on article here we have to send JWT auth token in `zESettings` on every page BEFORE loading the Web Widget snippet.
We are using ASP.NET with JQuery. We generate the token on server side and then the client code make ajax request to get the token and set it to zEsettings. So we have to make server call on every page load regardless user is actually using the web widget or not.
Is there any way to authenticate on demand? So i would like to authenticate only when user clicks on Help button.
Issue is the Widget does not expose widget click event, and also we have to authenticate BEFORE downloading the widget script.
Iniciar sesión para dejar un comentario.