Slavik_Chapelskyi | 2021-07-28 15:26:03 UTC | #1
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
tim.smith | 2021-07-28 15:56:04 UTC | #2
Please use the setJwt function as shown here: https://developer.genesys.cloud/api/rest/client-libraries/javascript-guest/#creating-a-chat
Slavik_Chapelskyi | 2021-07-28 15:57:08 UTC | #3
Thank you @tim.smith. That worked Eventually I was using not correct client library.
system | 2021-08-28 15:57:08 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 11605