We’re using the messaging widget and have an issue where, if we don’t add a fresh JWT token, the widget shuts down.
When following the example linked in your documentation:
https://developer.zendesk.com/api-reference/widget-messaging/web/authentication/#dynamically-fetching-fresh-jwt-tokens-with-loginuser
We’re able to keep the widget alive and authenticated, but the widget UI reloads as if the page is refreshed. Is there a way to refresh the JWT token without causing the widget UI to reload?
Currently when you refresh the JWT token using the loginUser method in the Messaging widget, the widget UI reloads to reinitialize the user session, so there’s no way to refresh the token without causing this reload. This behavior is required to securely apply the new token. While a seamless token refresh without UI interruption isn’t supported right now, you can consider extending token expiration to minimize reload frequency.