selectBrowser

abstract fun selectBrowser(context: Context): Result<String>

Returns the package name of the browser to restrict the Custom Tab launch to.

A failed Result (e.g. NoBrowserFoundException) means no specific browser was selected — DefaultWebAuthenticationProvider then attempts to launch the Custom Tab without a package restriction, letting Android resolve the default handler. If that unrestricted attempt also fails, the original failure cause (e.g. NoBrowserFoundException) is surfaced from DefaultWebAuthenticationProvider.launchAuthTab instead of the resulting android.content.ActivityNotFoundException, since it is the more specific and actionable cause.