express-embed-mobile-sdk-android-release

//sdk/com.adobe.express.embedsdk/ClientAuthStore

ClientAuthStore


class ClientAuthStore(clientAuthProvider: ClientAuthProvider, clientAuthDetailsValidatorFn: (ClientAuthDetails) -> Unit)

Store for managing client authentication details with proactive refresh scheduling.

Constructors

   
ClientAuthStore
constructor(clientAuthProvider: ClientAuthProvider, clientAuthDetailsValidatorFn: (ClientAuthDetails) -> Unit)

Types

Name Summary
Companion
object Companion

Functions

Name Summary
getClientAuthDetails
suspend fun getClientAuthDetails(): ClientAuthDetails?
Get the client auth details. If the client auth details are not available, it will fetch them.
isRefreshInProgress
fun isRefreshInProgress(): Boolean
Check if a refresh operation is currently in progress.
isRefreshScheduled
fun isRefreshScheduled(): Boolean
Check if a client auth refresh is scheduled to happen.
scheduleClientAuthRefresh
suspend fun scheduleClientAuthRefresh()
Schedule the client auth refresh. This will fetch the client auth details and schedule the next refresh. Calls onClientAuthRefreshed callback with the new client auth details. Prevents multiple concurrent refresh operations.
setOnClientAuthRefreshed
fun setOnClientAuthRefreshed(onClientAuthRefreshed: (ClientAuthDetails) -> Unit)
Set the callback to be called when the client auth is refreshed.
setOnClientAuthRefreshFailed
fun setOnClientAuthRefreshFailed(onClientAuthRefreshFailed: (Throwable) -> Unit)
Set the callback to be called when the client auth refresh fails.
stopClientAuthRefresh
fun stopClientAuthRefresh()
Stop the client auth refresh. This will clear the refresh timer and stop the client auth refresh.