Configuring Web Messaging Guest API for an authenticated session

Does anyone in the community have experience with Web Messaging Guest API and authenticated sessions?
Are there any worked examples of this?

Summary

We have a backend service that is using [Web messaging Guest API] (Genesys Cloud Developer Center) to establish a WebSocket connection with Genesys and transfer a chat session to a live agent.

Problem statement

To comply with security requirements, we need to have an authenticated session with Genesys.

Problem details

For proof of concept, we are using ConfigureSession action which does not have authentication: Genesys Cloud Developer Center

With these parameters:
{

"action": "configureSession",

"tracingId": "{{tracingId}}",

"deploymentId": "{{deploymentId}}",

"token": "{{token}}"

}

What we want to use is ConfigureAuthenticatedSession action: Genesys Cloud Developer Center

It has an additional parameter "Code"

code (required) A JWT token retrieved from Genesys [platform API URLs] (Genesys Cloud Developer Center) during user authentication.

Assuming that the authentication has to happen before the Web Messaging session is established, are there worked examples of how to get the "Code" parameter to be passed to ConfigureAuthenticatedSession action?

Thank you.

Hello and thanks for reaching out, for your question about configuration of authenticated webmessaging session, I suggest this Get started with authenticated web messaging - Genesys Cloud Resource Center I think this will help you

Regards,
Laurent