AuthConfig

sealed interface AuthConfig

Authentication configuration for the PosLink integration. It has two options: Delegated and Managed.

See also

Inheritors

Types

Link copied to clipboard
data class Delegated(val tokenProvider: PosLinkTokenProvider) : PosLinkSDK.AuthConfig

Used when the host application already manages the authentication and the tokens. When used, the setup method will not show the Teya UI for authentication. The tokenProvider will be called whenever the SDK needs to make a request.

Link copied to clipboard
data class Managed(val clientId: String, val clientSecret: String) : PosLinkSDK.AuthConfig

Used when host application wants the SDK to manage authentication. Integrators can create their client ID and secret in the Teya Developer Portal.