FetchClientSecretTask

Task implementing FetchClientSecret to be used by consumers who don't wish to use coroutines in their applications, or who are calling the SDK from Java.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
fun interface ResultCallback

The interface used to pass your client secret to the SDK.

Functions

Link copied to clipboard

Called when the Connect SDK needs a client secret from your server. Implement a secure network call to your server here to fetch your client secret and use callback to pass it to the Connect SDK.

Link copied to clipboard
open suspend operator override fun invoke(): String?

Called when the Connect SDK needs a client secret from your server. Implement a secure network call to your server here to fetch your client secret. If you're unable to provide a client secret for any reason, return null.