start

abstract suspend fun start(scope: String = "openid profile email offline_access"): 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 OAuth2 scopes to request.