I have a SPA application. To access the main content, authorization is required. I have connected the HubSpot LiveChat widget.
I want to implement the following:
- If the user is not authorized, the chat is available to them as an "Unknown Visitor." - If the user is authorized, it is necessary to set the email and token for the chat. I found the following method: