handleRedirect

abstract suspend fun handleRedirect(url: String): String

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

Return

the full redirect callback URI string captured after the user completes the flow.

Parameters

url

the authorization or logout URL to open in the browser.

Throws

if the redirect cannot be captured (timeout, port conflict, user cancellation).