BrowserRedirectHandler

Abstracts browser launch and redirect capture for redirect-based OAuth2 flows.

Implementations are platform-specific:

  • JVM: LocalhostBrowserRedirectHandler starts a localhost HTTP server and opens the system browser.

  • Android: web-authentication-ui provides an implementation using Custom Tabs and deep link intent filters.

See also

LocalhostBrowserRedirectHandler

Inheritors

Functions

Link copied to clipboard
abstract suspend fun handleRedirect(url: String): String

Opens the given URL in a browser and suspends until the redirect callback is captured.