Incorrect auth applied when sending guest chat message

Hello guys,

I'm using platform client for building the custom chat solutions using WebChatApi and facing auth issues when sending messages on behalf of end chat users.
As mentioned here a have set an jwt token to Guest Chat JWT with the response of post conversation API.

But it seems like 0Auth authentification is applied instead of Guest Chat JWT for this API and as the result I am failing making the request with Unauthorized error.

I have a workaround for this with next code, but I am not sure it is correct, as this is really uses guest chat jwt

Please use the setJwt function as shown here: https://developer.genesys.cloud/api/rest/client-libraries/javascript-guest/#creating-a-chat

Thank you @tim.smith. That worked
Eventually I was using not correct client library.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.