AuthenticationOption

Options for user authentication. You can choose between several authentication modes.

Inheritors

Types

Link copied to clipboard

Anonymous authentication option. Use it for unidentified visitors browsing your app.

Link copied to clipboard
interface JWECallback

Interface callback called to inform the SDK about the JWE token retrieval.

Link copied to clipboard
interface JWEProvider

Interface for the JSON web encrypted token provider. If you use secured authentication you will have to implement this interface to provide an up-to-date token at SDK activation and after token expiration.

Link copied to clipboard

Secured authentication option. Use it in conjunction with your in-house authentication system. You must pass a jwe provider object that wil be called when an authentication is needed, that means at first on SDK activation, then each time the token needs to be refreshed.

Link copied to clipboard
class Simple(val userId: String) : AuthenticationOption

Simple authentication option. Use it when you have a logged in user in your app. You must pass a unique identifier so that the visitor will retrieve his conversation history across multiple devices and platforms.