provide

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.

Parameters

forceRefresh

If true, the provider should refresh the token even if it is still within validity time window.

onTokenReady

Callback invoked with the authentication token when it is ready.