Delegated

data class Delegated(val tokenProvider: PosLinkTokenProvider, val clientId: String? = null, val clientSecret: String? = null) : 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.

Optionally, you can also pass in the clientId and clientSecret anyway. This allows the SDK to recover from an invalid user token retrieved with tokenProvider by going through the user authentication flow. If these are not provided and the SDK is unable to use the provided user token, setup will fail with SetupFailure.Reason.ServerCommunicationError.

See also

Constructors

Link copied to clipboard
constructor(tokenProvider: PosLinkTokenProvider, clientId: String? = null, clientSecret: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String