launchCustomTab

open override fun launchCustomTab(context: Context, url: HttpUrl): Result<Unit>

Launches the OIDC redirect flow associated with a WebAuthentication and wraps launch success/failure in a Result.

Has a default implementation that delegates to the deprecated launch, so existing WebAuthenticationProvider implementations keep compiling unchanged; override this instead of launch in new implementations.

Return

Result.success when the flow launches successfully, or Result.failure with the launch exception when it fails.

Parameters

context

the Android Activity used to display the flow.

url

the authorize URL the instance should display.