AuthenticationOption
public enum AuthenticationOption : Equatable
The option to authenticate the visitor.
-
Anonymous authentication.
The visitor can retrieve their conversations on the same device until they are logout or when the app is deleted from the device.
Declaration
Swift
case anonymous
-
Simple authentication using a unique identifier.
You provide a unique ID to identify the user. It should not contain any private information (email, phone number, name…). It should be opaque and unforgeable. The visitor can retrieve their conversations across devices.
Declaration
Swift
case simple(userId: String)
-
Secured authentication using a JWE (encrypted JWT).
You provide a valid JWE to identify the visitor. The visitor can retrieve their conversations across devices.
Declaration
Swift
case secured(jweProvider: JWEProvider)
-
Declaration
Swift
public static func == (lhs: AuthenticationOption, rhs: AuthenticationOption) -> Bool