How to declare JWT in the new version of WIDGET? | Community
Skip to main content

How to declare JWT in the new version of WIDGET?

  • April 11, 2022
  • 1 reply
  • 0 views

Hello,

using the new version of WIDGET I have tried to make an authentication through JWT following the steps of the following article: 

https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/web/enabling_auth_visitors/?_ga=2.147221751.1360305548.1649708615-2074457310.1649250451

I have no problem getting the JWT, but when I try to declare it in the WEB WIDGET nothing happens and the user is not authenticated. Is it possible that you provide me an example of how I should use the WIDGET in the new version of the WIDGET?

1 reply

Hey Juan,
 
To supply your JWT token to the web widget for Messaging, you can use the loginUser API.
 
Best,