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 an 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 base URL of the Okta org (e.g. "https://your-domain.okta.com"). Must use HTTPS. When authorizationServerId is also set, the effective issuer for OIDC discovery becomes "$issuerUrl/oauth2/$authorizationServerId".
clientId
the application's client ID (must not be blank).
scope
the default access scopes (must not be empty).
buildAction
optional configuration block for customizing builder properties, including authorizationServerId for targeting a custom authorization server.