LocalhostBrowserRedirectHandler

constructor(port: Int, path: String, timeoutMs: Long = DEFAULT_TIMEOUT_MS, browserLauncher: (String) -> Unit = Companion::defaultBrowserLauncher)

Parameters

port

the port to listen on. Must match the port in the registered redirect URI.

path

the expected callback path. Must match the path in the registered redirect URI.

timeoutMs

the maximum time in milliseconds to wait for the redirect. Defaults to 5 minutes.

browserLauncher

opens the given URL in a browser. Defaults to Desktop.browse.