AuthenticationType
public enum AuthenticationType : String, Codable, Sendable
Authentication type for chat connection.
Defines the authentication method used when establishing a connection to CXone services.
-
Anonymous authentication mode.
Allows custom customer identity to be provided (e.g., phone number). This mode is currently the default for existing clients.
Declaration
Swift
case anonymous -
Secured cookie authentication mode.
Backend generates customer identity for enhanced security. This mode requires transaction token exchange before WebSocket connection. Default for new clients (post-25.4 release).
Declaration
Swift
case securedCookie -
Third-party OAuth provider authentication mode.
Uses authorization code and code verifier for authentication. Requires configuration with supported OAuth providers (e.g., AWS Cognito).
Declaration
Swift
case thirdPartyOAuth
View on GitHub