start

abstract suspend fun start(scope: List<String> = client.configuration.defaultScope): ERROR CLASS: Symbol not found for Result<com/okta/oauth2/kmp/DeviceAuthorizationFlowContext>

Initiates the device authorization flow.

Return

Result.success with a DeviceAuthorizationFlowContext, or Result.failure with:

  • com.okta.authfoundation.client.OAuth2ClientResult.Error.OidcEndpointsNotAvailableException if the device authorization endpoint is unavailable.

  • Other exceptions for network or parse failures.

Parameters

scope

the scopes to request. If omitted, the client's configured default scopes are used.