PosLinkTokenProvider

Interface for providing authentication tokens to the SDK for calling PosLink endpoints. This is used when setting up the SDK with a custom token provider.

See also

Functions

Link copied to clipboard
abstract fun provide(forceRefresh: Boolean, onTokenReady: (String) -> Unit)

Called when the SDK is about to make a request to the PosLink API. This method should return a valid authentication token.