create

fun create(issuerUrl: String, clientId: String, scope: List<String>, buildAction: OAuth2ClientBuilder.() -> Unit? = null): ERROR CLASS: Symbol not found for Result<com/okta/authfoundation/client/kmp/OAuth2Client>

Creates a OAuth2Client with the given parameters and optional customization.

Return

Result containing the built OAuth2Client, or a failure with IllegalArgumentException if validation fails.

Parameters

issuerUrl

the Authorization Server URL (must use HTTPS).

clientId

the application's client ID (must not be blank).

scope

the default access scopes (must not be blank).

buildAction

optional configuration block for customizing builder properties.