ModelixAuthClient

expect object ModelixAuthClient

Functions and states for authenticating to a model server. Configuration differs for JS and JVM.

actual object ModelixAuthClient
actual object ModelixAuthClient

Functions

Link copied to clipboard
suspend fun authorize(modelixServerUrl: String): Credential
Link copied to clipboard
fun getTokens(): StoredCredential?
Link copied to clipboard
expect fun installAuth(config: HttpClientConfig<*>, baseUrl: String, authTokenProvider: suspend () -> String?? = null)

Function to configure the authentication for an HTTP client.

actual fun installAuth(config: HttpClientConfig<*>, baseUrl: String, authTokenProvider: suspend () -> String??)
actual fun installAuth(config: HttpClientConfig<*>, baseUrl: String, authTokenProvider: suspend () -> String??)