setAuthenticationInfo

fun setAuthenticationInfo(authCode: String, redirectUri: String, codeVerifier: String?)

Configures authorization code authentication for the chat session.

Call this method before starting a chat to authenticate the user using the OpenID authorization code flow. This clears any previously set implicit authentication info.

Important: Must be called before building the ChatController to take effect for the initial session. For subsequent sessions, call before reconnecting.

Parameters

authCode

The authorization code received from the OpenID provider's redirect.

redirectUri

The redirect URI registered with the OpenID provider, used for token exchange.

codeVerifier

The PKCE code verifier if the authorization request used PKCE, or null otherwise.