Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. A secret key is used to verify that the login request is valid and coming from your (client’s) back end. Each service desk project has its own secret key. To obtain the key, open your project, and go to Project Settings > Chat Settingsfor JSM > Widget Functionality > Registration & Log InAuthentication > Auto Login on Website.

  2. Here, enable the Auto Login feature, and then click Generate secret key:

...

  1. image-20240216-094307.pngImage Added
  1. The secret key should be stored on the back end.

...

Code Block
const chatWidget = document.querySelector('chat-widget');
chatWidget.onload = async function () {
        await chatWidget.loginWithToken(token);
};

...