Widget reloads when updating the messaging widget auth token | Community
Skip to main content

Widget reloads when updating the messaging widget auth token

  • October 13, 2025
  • 2 replies
  • 0 views

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?

2 replies

Lyet
  • October 27, 2025

Any idea of this?

I have similar issue, but sometimes the `loginUser` method no always triggering and getting new refreshed token when gets some 401 statusCode error when token expired


Francis14
  • December 31, 2025
Hello there,
 
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.