Error

data class Error<T>(val state: UIAState, val errorResponse: ErrorResponse, getFallbackUrlCallback: (AuthenticationType) -> Url, authenticateCallback: suspend (AuthenticationRequest) -> Result<UIA<T>>, onSuccessCallback: suspend () -> Unit = {}) : UIA<T>

Constructors

Link copied to clipboard
constructor(state: UIAState, errorResponse: ErrorResponse, getFallbackUrlCallback: (AuthenticationType) -> Url, authenticateCallback: suspend (AuthenticationRequest) -> Result<UIA<T>>, onSuccessCallback: suspend () -> Unit = {})

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun authenticate(request: AuthenticationRequest): Result<UIA<T>>
Link copied to clipboard
fun getFallbackUrl(authenticationType: AuthenticationType): Url
Link copied to clipboard
suspend fun <T> UIA<T>.injectOnSuccessIntoUIA(onSuccessCallback: suspend () -> Unit = {}): UIA<T>