BrowserLauncher

The BrowserLauncher is responsible for launching authentication URLs in a browser tab.

It supports both regular Custom Tabs and Auth Tabs (enhanced security for OAuth flows). Auth Tabs are used when supported by the device and when the redirect URI uses a custom scheme.

This singleton object manages the browser launch lifecycle and coordinates between the various components involved in browser-based authentication.

WARNING: GLOBAL CONFIGURATION This object contains global configuration properties that affect all browser behavior. These properties are NOT thread-safe and should be configured before any browser launches occur, ideally during application initialization.

See also

Properties

Link copied to clipboard
Link copied to clipboard

A customizer for the Intent that will launch the browser tab.

Link copied to clipboard
Link copied to clipboard

The redirect URI used for browser authentication.

Functions

Link copied to clipboard
suspend fun launch(url: URL, redirectUri: Uri = this.redirectUri): Result<Uri>

Launches a URL in a browser tab and waits for authentication to complete.